pub struct OperationInfo {
pub path: String,
pub method: Method,
pub operation: Operation,
}Expand description
Operation information for grouping by tag
Fields§
§path: String§method: Method§operation: OperationImplementations§
Source§impl OperationInfo
impl OperationInfo
Sourcepub fn to_api_method_data(
&self,
components: Option<&Components>,
) -> ApiMethodData
pub fn to_api_method_data( &self, components: Option<&Components>, ) -> ApiMethodData
Convert to ApiMethodData with optional Components for schema resolution
pub fn collect_responses( &self, components: Option<&Components>, ) -> (BTreeMap<StatusCode, HttpResponse>, BTreeMap<StatusCode, HttpResponse>, Option<HttpResponse>)
Trait Implementations§
Source§impl Clone for OperationInfo
impl Clone for OperationInfo
Source§fn clone(&self) -> OperationInfo
fn clone(&self) -> OperationInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for OperationInfo
impl<'de> Deserialize<'de> for OperationInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl OperationInfoExt for OperationInfo
impl OperationInfoExt for OperationInfo
Source§fn method_name(&self) -> String
fn method_name(&self) -> String
Returns the computed method name for this operation, using the
operation_id if available, or generating one based on the HTTP method
and path if not.fn parameters(&self) -> Vec<Parameter>
Auto Trait Implementations§
impl Freeze for OperationInfo
impl RefUnwindSafe for OperationInfo
impl Send for OperationInfo
impl Sync for OperationInfo
impl Unpin for OperationInfo
impl UnwindSafe for OperationInfo
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