pub struct OpenApiOperation { /* private fields */ }Expand description
Reduced operation metadata. Debug deliberately omits the raw path.
Implementations§
Source§impl OpenApiOperation
impl OpenApiOperation
pub fn id(&self) -> &OpenApiOperationId
pub fn path(&self) -> &str
pub const fn method(&self) -> OpenApiHttpMethod
pub fn parameters(&self) -> &[OpenApiParameterMetadata]
Sourcepub const fn request_body_declared(&self) -> bool
pub const fn request_body_declared(&self) -> bool
Returns whether the operation declares a request body, including an empty request-body object with no media entries.
pub fn request_media_types(&self) -> &[String]
pub fn request_media_families(&self) -> &[OpenApiMediaFamily]
pub fn responses(&self) -> &[OpenApiResponseMetadata]
pub const fn response_summary(&self) -> &OpenApiResponseSummary
pub const fn security(&self) -> &OpenApiSecurityMetadata
pub const fn security_source(&self) -> OpenApiSecuritySource
pub fn servers(&self) -> &[OpenApiServerMetadata]
pub const fn has_declared_operation_id(&self) -> bool
Sourcepub const fn declared_operation_id_fingerprint(&self) -> Option<&[u8; 32]>
pub const fn declared_operation_id_fingerprint(&self) -> Option<&[u8; 32]>
Stable raw-value-free fingerprint of the declared operationId.
pub const fn deprecated(&self) -> bool
pub fn source_document_identity(&self) -> &str
Trait Implementations§
Source§impl Clone for OpenApiOperation
impl Clone for OpenApiOperation
Source§fn clone(&self) -> OpenApiOperation
fn clone(&self) -> OpenApiOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenApiOperation
impl Debug for OpenApiOperation
impl Eq for OpenApiOperation
Source§impl PartialEq for OpenApiOperation
impl PartialEq for OpenApiOperation
impl StructuralPartialEq for OpenApiOperation
Auto Trait Implementations§
impl Freeze for OpenApiOperation
impl RefUnwindSafe for OpenApiOperation
impl Send for OpenApiOperation
impl Sync for OpenApiOperation
impl Unpin for OpenApiOperation
impl UnsafeUnpin for OpenApiOperation
impl UnwindSafe for OpenApiOperation
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more