pub struct MethodOperation {
pub operations: HashMap<String, Operation>,
}
Fields§
§operations: HashMap<String, Operation>
The operations
This is the operations of the OpenAPI specification.
Example:
{
"get": {
"operationId": "get_record"
}
}
Implementations§
Source§impl MethodOperation
impl MethodOperation
Sourcepub fn find_operation(&self, operation_id: &str) -> Option<&Operation>
pub fn find_operation(&self, operation_id: &str) -> Option<&Operation>
Find an operation by operation id
This function finds an operation by operation id.
Trait Implementations§
Source§impl Clone for MethodOperation
impl Clone for MethodOperation
Source§fn clone(&self) -> MethodOperation
fn clone(&self) -> MethodOperation
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 Debug for MethodOperation
impl Debug for MethodOperation
Source§impl Default for MethodOperation
impl Default for MethodOperation
Source§fn default() -> MethodOperation
fn default() -> MethodOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MethodOperation
impl<'de> Deserialize<'de> for MethodOperation
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 PartialEq for MethodOperation
impl PartialEq for MethodOperation
Source§impl Serialize for MethodOperation
impl Serialize for MethodOperation
impl Eq for MethodOperation
impl StructuralPartialEq for MethodOperation
Auto Trait Implementations§
impl Freeze for MethodOperation
impl RefUnwindSafe for MethodOperation
impl Send for MethodOperation
impl Sync for MethodOperation
impl Unpin for MethodOperation
impl UnwindSafe for MethodOperation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.