Struct google_photoslibrary1::api::Date [−][src]
Expand description
Represents a whole calendar date. Set day
to 0 when only the month and year are significant, for example, all of December 2018. Set day
and month
to 0 if only the year is significant, for example, the entire of 2018. Set year
to 0 when only the day and month are significant, for example, an anniversary or birthday. Unsupported: Setting all values to 0, only month
to 0, or both day
and year
to 0 at the same time.
This type is not used in any activity, and only used as part of another schema.
Fields
day: Option<i32>
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year/month where the day isn’t significant.
month: Option<i32>
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
year: Option<i32>
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Date
impl UnwindSafe for Date
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more