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 for SchemaFormat
impl PartialEq for SchemaFormat
source§impl Serialize for SchemaFormat
impl Serialize for SchemaFormat
impl Eq for SchemaFormat
impl StructuralPartialEq for SchemaFormat
Auto Trait Implementations§
impl Freeze for SchemaFormat
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.