#[non_exhaustive]pub enum Section {
Callbacks,
Examples,
Headers,
Links,
Parameters,
RequestBodies,
Responses,
Schemas,
SecuritySchemes,
Paths,
}Expand description
A section of an OpenAPI document that $ref pointers can name.
The string form is the wire spelling used in a document
(components/requestBodies), which is not the same as the Rust
field name on openapiv3::Components (request_bodies).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Callbacks
#/components/callbacks
Examples
#/components/examples
Headers
#/components/headers
Links
#/components/links
Parameters
#/components/parameters
RequestBodies
#/components/requestBodies
Responses
#/components/responses
Schemas
#/components/schemas
SecuritySchemes
#/components/securitySchemes
Paths
#/paths
Implementations§
Trait Implementations§
impl Copy for Section
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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.