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 duplicate 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<SchemaFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaFormat, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§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.