pub struct OpenApiOperation { /* private fields */ }Expand description
OpenAPI 3.1.0 operation descriptor under a path and HTTP method.
Implementations§
Source§impl OpenApiOperation
Builders for OpenApiOperation.
impl OpenApiOperation
Builders for OpenApiOperation.
Sourcepub fn new<S>(summary: S) -> Self
pub fn new<S>(summary: S) -> Self
Creates an OpenApiOperation with a summary line.
§Arguments
S- Short summary string.
§Returns
Self- New operation descriptor.
Sourcepub fn with_parameter<N, L>(self, name: N, location: L, required: bool) -> Self
pub fn with_parameter<N, L>(self, name: N, location: L, required: bool) -> Self
Source§impl OpenApiOperation
impl OpenApiOperation
pub fn get_summary(&self) -> &String
pub fn get_mut_summary(&mut self) -> &mut String
pub fn set_summary(&mut self, val: String) -> &mut Self
pub fn get_description(&self) -> String
pub fn try_get_description(&self) -> &Option<String>
pub fn get_mut_description(&mut self) -> &mut Option<String>
pub fn set_description(&mut self, val: Option<String>) -> &mut Self
pub fn get_operation_id(&self) -> String
pub fn try_get_operation_id(&self) -> &Option<String>
pub fn get_mut_operation_id(&mut self) -> &mut Option<String>
pub fn set_operation_id(&mut self, val: Option<String>) -> &mut Self
pub fn get_parameters(&self) -> &Vec<OpenApiParameter>
pub fn get_mut_parameters(&mut self) -> &mut Vec<OpenApiParameter>
pub fn set_parameters(&mut self, val: Vec<OpenApiParameter>) -> &mut Self
pub fn get_responses(&self) -> &BTreeMap<String, OpenApiResponse>
pub fn get_mut_responses(&mut self) -> &mut BTreeMap<String, OpenApiResponse>
pub fn set_responses( &mut self, val: BTreeMap<String, OpenApiResponse>, ) -> &mut Self
Trait Implementations§
Source§impl Clone for OpenApiOperation
impl Clone for OpenApiOperation
Source§impl Debug for OpenApiOperation
impl Debug for OpenApiOperation
Source§impl<'de> Deserialize<'de> for OpenApiOperation
impl<'de> Deserialize<'de> for OpenApiOperation
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
impl Eq for OpenApiOperation
Source§impl PartialEq for OpenApiOperation
impl PartialEq for OpenApiOperation
Source§impl Serialize for OpenApiOperation
impl Serialize for OpenApiOperation
impl StructuralPartialEq for OpenApiOperation
Auto Trait Implementations§
impl Forget for OpenApiOperation
impl Freeze for OpenApiOperationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<OpenApiParameter>: Freeze,
*const LeafNode<String, OpenApiResponse> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, OpenApiResponse)>>: Freeze,
impl Move for OpenApiOperation
impl RefUnwindSafe for OpenApiOperation
impl Send for OpenApiOperationwhere
RawVecInner: Send,
NodeRef<Owned, String, OpenApiResponse, LeafOrInternal>: Send,
BoxRaw<(String, OpenApiResponse)>: Send,
impl Sync for OpenApiOperationwhere
RawVecInner: Sync,
NodeRef<Owned, String, OpenApiResponse, LeafOrInternal>: Sync,
BoxRaw<(String, OpenApiResponse)>: Sync,
impl Unpin for OpenApiOperation
impl UnsafeUnpin for OpenApiOperationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<OpenApiParameter>: UnsafeUnpin,
*const LeafNode<String, OpenApiResponse> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, OpenApiResponse)>>: UnsafeUnpin,
impl UnwindSafe for OpenApiOperation
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.