pub enum Format {
Show 24 variants
DateTime,
Date,
Time,
Duration,
Decimal,
Currency,
Country2,
Country3,
CountrySubdivision,
Email,
IdnEmail,
Hostname,
IdnHostname,
Ipv4,
Ipv6,
Url,
UrlReference,
Irl,
IrlReference,
UrlTemplate,
Uuid,
Regex,
Base64,
KdlQuery,
}Expand description
a format to ensure a value has
Variants§
DateTime
iso 8601 datetime string
Date
iso 8601 date string
Time
iso 8601 time string
Duration
iso 8601 duration string
Decimal
ieee 754-2008 decimal string
Currency
iso 4217 currency code string
Country2
iso 3166-1 alpha-2 country code string
Country3
iso 3166-1 alpha-3 country code string
CountrySubdivision
iso 3166-2 country subdivision code string
rfc 5302 email address string
IdnEmail
rfc 6531 internationalized email address string
Hostname
rfc 1132 internet hostname string
IdnHostname
rfc 5890 internationalized internet hostname string
Ipv4
rfc 2673 ipv4 address string
Ipv6
rfc 2373 ipv6 address string
Url
rfc 3986 uri string
UrlReference
rfc 3986 uri reference string
Irl
rfc 3987 iri string
IrlReference
rfc 3987 iri reference string
UrlTemplate
rfc 6750 uri template string
Uuid
rfc 4122 uuid string
Regex
regular expression string
Base64
base64 encoded string
KdlQuery
KDL query string
Trait Implementations§
Source§impl<S: ErrorSpan> DecodeScalar<S> for Format
impl<S: ErrorSpan> DecodeScalar<S> for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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