pub struct Field {
pub symbol: FieldSymbol,
pub length: FieldLength,
}
Expand description
A field within a date pattern string, also referred to as a date field. A date field is the repetition of a specific pattern character one or more times within the pattern string. The pattern character is known as the field symbol, which indicates the particular meaning for the field.
Fields§
§symbol: FieldSymbol
The field symbol for the Field
, which corresponds to the field’s meaning with the
date pattern.
length: FieldLength
The length of the Field
, which in conjunction with the FieldSymbol
informs the width or
style of the formatting output corresponding to this field.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Field, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Field, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<(FieldSymbol, FieldLength)> for Field
impl From<(FieldSymbol, FieldLength)> for Field
source§fn from(input: (FieldSymbol, FieldLength)) -> Field
fn from(input: (FieldSymbol, FieldLength)) -> Field
Converts to this type from the input type.
source§impl From<TimeZoneName> for Field
impl From<TimeZoneName> for Field
source§fn from(time_zone_name: TimeZoneName) -> Field
fn from(time_zone_name: TimeZoneName) -> Field
Converts to this type from the input type.
source§impl Ord for Field
impl Ord for Field
source§impl PartialEq<Field> for Field
impl PartialEq<Field> for Field
source§impl PartialOrd<Field> for Field
impl PartialOrd<Field> for Field
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more