Enum salvo_oapi::KnownFormat
source · pub enum KnownFormat {
Show 19 variants
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float,
Double,
Byte,
Binary,
Date,
DateTime,
Password,
Decimal,
Url,
Ulid,
Uuid,
}
Expand description
Known schema format modifier property to provide fine detail of the primitive type.
Variants§
Int8
8 bit integer.
Int16
16 bit integer.
Int32
32 bit integer.
Int64
64 bit integer.
UInt8
8 bit unsigned integer.
UInt16
16 bit unsigned integer.
UInt32
32 bit unsigned integer.
UInt64
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.
Decimal
decimal
or decimal-float
only.Used with String
values to indicate value is in decimal format.
decimal feature need to be enabled.
Url
url
only.Used with String
values to indicate value is in Url format.
url feature need to be enabled.
Ulid
ulid
only.Used with String
values to indicate value is in ULID format.
ulid feature need to be enabled.
Uuid
uuid
only.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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KnownFormat
impl Debug for KnownFormat
source§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>,
source§impl PartialEq for KnownFormat
impl PartialEq for KnownFormat
source§fn eq(&self, other: &KnownFormat) -> bool
fn eq(&self, other: &KnownFormat) -> bool
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
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
key
and return true
if they are equal.