pub enum TypeFeature {
Chrono,
Time,
TimeDate,
TimeTime,
Iso8601,
Uuid,
Bytes,
Base64,
Url,
EmailAddress,
}Expand description
Identifies an optional crate a mapping introduced.
Variants§
Chrono
Time
TimeDate
time::Date via the generated time_date_format codec.
Tracked separately from TypeFeature::Time so the
generator only emits the time::serde::format_description!
helper when a format: date field actually exists.
TimeTime
time::Time via the generated time_time_format codec.
Iso8601
Uuid
Bytes
Base64
Url
EmailAddress
Implementations§
Source§impl TypeFeature
impl TypeFeature
Sourcepub fn dep_requirement(self) -> DepRequirement
pub fn dep_requirement(self) -> DepRequirement
Canonical dependency line for this feature. Q2.8 uses this to
emit REQUIRED_DEPS.toml next to the generated code so users
know exactly which crates to add to their Cargo.toml.
Trait Implementations§
Source§impl Clone for TypeFeature
impl Clone for TypeFeature
Source§fn clone(&self) -> TypeFeature
fn clone(&self) -> TypeFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeFeature
Source§impl Debug for TypeFeature
impl Debug for TypeFeature
impl Eq for TypeFeature
Source§impl Hash for TypeFeature
impl Hash for TypeFeature
Source§impl Ord for TypeFeature
impl Ord for TypeFeature
Source§fn cmp(&self, other: &TypeFeature) -> Ordering
fn cmp(&self, other: &TypeFeature) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeFeature
impl PartialEq for TypeFeature
Source§impl PartialOrd for TypeFeature
impl PartialOrd for TypeFeature
impl StructuralPartialEq for TypeFeature
Auto Trait Implementations§
impl Freeze for TypeFeature
impl RefUnwindSafe for TypeFeature
impl Send for TypeFeature
impl Sync for TypeFeature
impl Unpin for TypeFeature
impl UnsafeUnpin for TypeFeature
impl UnwindSafe for TypeFeature
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.