Enum utoipa::openapi::schema::SchemaFormat
source · pub enum SchemaFormat {
KnownFormat(KnownFormat),
Custom(String),
}
Expand description
Additional format for SchemaType
to fine tune the data type used. If the format is not
supported by the UI it may default back to SchemaType
alone.
Format is an open value, so you can use any formats, even not those defined by the
OpenAPI Specification.
Variants§
KnownFormat(KnownFormat)
Use to define additional detail about the value.
Custom(String)
Can be used to provide additional detail about the value when SchemaFormat::KnownFormat
is not suitable.
Trait Implementations§
source§impl Clone for SchemaFormat
impl Clone for SchemaFormat
source§fn clone(&self) -> SchemaFormat
fn clone(&self) -> SchemaFormat
Returns a copy 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<'de> Deserialize<'de> for SchemaFormat
impl<'de> Deserialize<'de> for SchemaFormat
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<SchemaFormat> for SchemaFormat
impl PartialEq<SchemaFormat> for SchemaFormat
source§fn eq(&self, other: &SchemaFormat) -> bool
fn eq(&self, other: &SchemaFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchemaFormat
impl Serialize for SchemaFormat
impl Eq for SchemaFormat
impl StructuralEq for SchemaFormat
impl StructuralPartialEq for SchemaFormat
Auto Trait Implementations§
impl RefUnwindSafe for SchemaFormat
impl Send for SchemaFormat
impl Sync for SchemaFormat
impl Unpin for SchemaFormat
impl UnwindSafe for SchemaFormat
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.