pub struct MethodMetadata {
pub service_name: String,
pub method_name: String,
pub input_type: String,
pub output_type: String,
pub operation: Option<Operation>,
pub http_rule: HttpRule,
pub http_pattern: HttpPattern,
pub documentation: Option<String>,
}Expand description
Metadata extracted from a service method
Fields§
§service_name: String§method_name: String§input_type: String§output_type: String§operation: Option<Operation>§http_rule: HttpRule§http_pattern: HttpPatternPre-parsed HTTP URL pattern. Analysis should use this directly instead of re-parsing.
documentation: Option<String>Implementations§
Source§impl MethodMetadata
impl MethodMetadata
Sourcepub fn http_method(&self) -> Option<&str>
pub fn http_method(&self) -> Option<&str>
Return the HTTP method string (e.g. “GET”, “POST”).
Trait Implementations§
Source§impl Clone for MethodMetadata
impl Clone for MethodMetadata
Source§fn clone(&self) -> MethodMetadata
fn clone(&self) -> MethodMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MethodMetadata
impl RefUnwindSafe for MethodMetadata
impl Send for MethodMetadata
impl Sync for MethodMetadata
impl Unpin for MethodMetadata
impl UnsafeUnpin for MethodMetadata
impl UnwindSafe for MethodMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more