Enum utoipa::openapi::schema::KnownFormat
source · pub enum KnownFormat {
Show 18 variants
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float,
Double,
Byte,
Binary,
Date,
DateTime,
Password,
Uuid,
Ulid,
Uri,
}
Expand description
Known schema format modifier property to provide fine detail of the primitive type.
Variants§
Int8
Available on crate feature
non_strict_integers
only.8 bit integer.
Int16
Available on crate feature
non_strict_integers
only.16 bit integer.
Int32
32 bit integer.
Int64
64 bit integer.
UInt8
Available on crate feature
non_strict_integers
only.8 bit unsigned integer.
UInt16
Available on crate feature
non_strict_integers
only.16 bit unsigned integer.
UInt32
Available on crate feature
non_strict_integers
only.32 bit unsigned integer.
UInt64
Available on crate feature
non_strict_integers
only.64 bit unsigned integer.
Float
floating point number.
Double
double (floating point) number.
Byte
base64 encoded chars.
Binary
binary data (octet).
Date
ISO-8601 full date FRC3339.
DateTime
ISO-8601 full date time FRC3339.
Password
Hint to UI to obscure input.
Uuid
Available on crate feature
uuid
only.Used with String
values to indicate value is in UUID format.
uuid feature need to be enabled.
Ulid
Available on crate feature
ulid
only.Used with String
values to indicate value is in ULID format.
ulid feature need to be enabled.
Uri
Available on crate feature
url
only.Used with String
values to indicate value is in Url format.
url feature need to be enabled.
Trait Implementations§
source§impl Clone for KnownFormat
impl Clone for KnownFormat
source§fn clone(&self) -> KnownFormat
fn clone(&self) -> KnownFormat
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 KnownFormat
impl<'de> Deserialize<'de> for KnownFormat
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 KnownFormat
impl PartialEq for KnownFormat
source§fn eq(&self, other: &KnownFormat) -> bool
fn eq(&self, other: &KnownFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KnownFormat
impl Serialize for KnownFormat
impl Eq for KnownFormat
impl StructuralPartialEq for KnownFormat
Auto Trait Implementations§
impl Freeze for KnownFormat
impl RefUnwindSafe for KnownFormat
impl Send for KnownFormat
impl Sync for KnownFormat
impl Unpin for KnownFormat
impl UnwindSafe for KnownFormat
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 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.