#[non_exhaustive]pub enum TemporalPrecision {
Date,
Time,
DateTime,
Month,
Week,
}Expand description
How much of a point in time a ControlKind::Temporal control asks for.
HTML’s date, time, datetime-local, month and week — five input
types that differ only in precision, so they are five configurations of one
kind rather than five kinds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Date
A calendar date: YYYY-MM-DD.
Time
A wall-clock time: HH:MM or HH:MM:SS.
DateTime
A local date and time: YYYY-MM-DDTHH:MM[:SS].
Month
A calendar month: YYYY-MM.
Week
An ISO week: YYYY-Www.
Implementations§
Trait Implementations§
Source§impl Clone for TemporalPrecision
impl Clone for TemporalPrecision
impl Copy for TemporalPrecision
Source§impl Debug for TemporalPrecision
impl Debug for TemporalPrecision
Source§impl<'de> Deserialize<'de> for TemporalPrecision
impl<'de> Deserialize<'de> for TemporalPrecision
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
impl Eq for TemporalPrecision
Source§impl PartialEq for TemporalPrecision
impl PartialEq for TemporalPrecision
Source§impl Serialize for TemporalPrecision
impl Serialize for TemporalPrecision
impl StructuralPartialEq for TemporalPrecision
Auto Trait Implementations§
impl Freeze for TemporalPrecision
impl RefUnwindSafe for TemporalPrecision
impl Send for TemporalPrecision
impl Sync for TemporalPrecision
impl Unpin for TemporalPrecision
impl UnsafeUnpin for TemporalPrecision
impl UnwindSafe for TemporalPrecision
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