Struct icu_datetime::options::length::Bag [−][src]
A structure to represent the set of lengths in which the DateTimeInput
implementer should be formatted to.
The available lengths correspond to UTS #35: Unicode LDML 4. Dates
, section 2.4 Element dateFormats
.
Examples
use icu::datetime::DateTimeFormatOptions; use icu::datetime::options::length; let bag = length::Bag { date: Some(length::Date::Medium), time: Some(length::Time::Short), preferences: None, }; let options = DateTimeFormatOptions::Length(bag);
Or the options can be inferred through the Into
trait.
use icu::datetime::DateTimeFormatOptions; use icu::datetime::options::length; let options: DateTimeFormatOptions = length::Bag::default().into();
Fields
date: Option<Date>
time: Option<Time>
preferences: Option<Bag>
Trait Implementations
impl<'de> Deserialize<'de> for Bag
[src]
impl<'de> Deserialize<'de> for Bag
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Bag
[src]
impl StructuralPartialEq for Bag
[src]Auto Trait Implementations
impl RefUnwindSafe for Bag
impl RefUnwindSafe for Bag
impl UnwindSafe for Bag
impl UnwindSafe for Bag
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> ErasedDataStruct for T where
T: Clone + Debug + Any,
[src]
impl<T> ErasedDataStruct for T where
T: Clone + Debug + Any,
[src]