pub struct Operation {
pub name: OperationName,
pub http_method: OperationHttpMethod,
pub http_path: OperationHttpPath,
}Expand description
Represents an HTTP operation with a name, HTTP method, and HTTP path.
Fields§
§name: OperationName§http_method: OperationHttpMethod§http_path: OperationHttpPathImplementations§
Source§impl Operation
impl Operation
Sourcepub fn builder() -> OperationBuilder
pub fn builder() -> OperationBuilder
Provides a builder to construct an Operation instance step by step.
This method returns a new OperationBuilder object. The builder pattern allows for
gradual construction of the Operation object, with flexibility to set each field
individually and validate them before finalizing the construction.
§Returns
A new OperationBuilder to build the Operation object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request