pub enum OperationHttpMethod {
GET,
POST,
}Expand description
Enum representing possible HTTP methods that can be used in API operations.
This enum provides a type - safe way to specify the HTTP method for an API request.
It currently includes the two most commonly used HTTP methods: GET and POST.
The Debug derive allows for easy debugging by providing a default implementation
of the fmt::Debug trait, which enables printing the enum variants in a readable format.
The Clone derive allows for creating copies of the enum values when needed.
Variants§
GET
Represents the HTTP GET method. The GET method is used to request data from a specified resource. It is a safe and idempotent method, meaning that multiple identical requests should have the same effect as a single request.
POST
Represents the HTTP POST method. The POST method is used to submit data to be processed to a specified resource. It is typically used when creating new resources on the server or sending data that will cause a change in the server’s state.
Trait Implementations§
Source§impl Clone for OperationHttpMethod
impl Clone for OperationHttpMethod
Source§fn clone(&self) -> OperationHttpMethod
fn clone(&self) -> OperationHttpMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for OperationHttpMethod
impl RefUnwindSafe for OperationHttpMethod
impl Send for OperationHttpMethod
impl Sync for OperationHttpMethod
impl Unpin for OperationHttpMethod
impl UnwindSafe for OperationHttpMethod
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
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>
T in a tonic::Request