Enum utoipa::openapi::schema::KnownFormat
source · pub enum KnownFormat {
Int32,
Int64,
Float,
Double,
Byte,
Binary,
Date,
DateTime,
Password,
Uuid,
}
Expand description
Known schema format modifier property to provide fine detail of the primitive type.
Variants§
Int32
32 bit integer.
Int64
64 bit 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
Used with String
values to indicate value is in UUID format.
uuid 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<KnownFormat> for KnownFormat
impl PartialEq<KnownFormat> 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 StructuralEq for KnownFormat
impl StructuralPartialEq for KnownFormat
Auto Trait Implementations§
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 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.