MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / or

Method or

aiscript-directive/src/route/mod.rs:67–75  ·  view source on GitHub ↗
(mut self, other: &RouteAnnotation)

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn or(mut self, other: &RouteAnnotation) -> Self {
68 if matches!(self.auth, Auth::None) {
69 self.auth = other.auth;
70 }
71 if self.docs.is_none() {
72 self.docs = other.docs.clone()
73 }
74 self
75 }
76}
77
78impl FromDirective for Auth {

Callers 2

lastMethod · 0.45
run_serverFunction · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected