pub enum OpenApiVersion {
V3_0_0,
V3_1_0,
V3_2_0,
}Expand description
OpenAPI specification version
Variants§
Implementations§
Source§impl OpenApiVersion
impl OpenApiVersion
Sourcepub fn all() -> &'static [OpenApiVersion]
pub fn all() -> &'static [OpenApiVersion]
Get all supported versions
Trait Implementations§
Source§impl Clone for OpenApiVersion
impl Clone for OpenApiVersion
Source§fn clone(&self) -> OpenApiVersion
fn clone(&self) -> OpenApiVersion
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 OpenApiVersion
impl Debug for OpenApiVersion
Source§impl Hash for OpenApiVersion
impl Hash for OpenApiVersion
Source§impl Ord for OpenApiVersion
impl Ord for OpenApiVersion
Source§fn cmp(&self, other: &OpenApiVersion) -> Ordering
fn cmp(&self, other: &OpenApiVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OpenApiVersion
impl PartialEq for OpenApiVersion
Source§fn eq(&self, other: &OpenApiVersion) -> bool
fn eq(&self, other: &OpenApiVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OpenApiVersion
impl PartialOrd for OpenApiVersion
impl Copy for OpenApiVersion
impl Eq for OpenApiVersion
impl StructuralPartialEq for OpenApiVersion
Auto Trait Implementations§
impl Freeze for OpenApiVersion
impl RefUnwindSafe for OpenApiVersion
impl Send for OpenApiVersion
impl Sync for OpenApiVersion
impl Unpin for OpenApiVersion
impl UnsafeUnpin for OpenApiVersion
impl UnwindSafe for OpenApiVersion
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