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 for KnownFormat
impl PartialEq for KnownFormat
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<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.