Struct google_photoslibrary1::api::Date
source · pub struct Date {
pub day: Option<i32>,
pub month: Option<i32>,
pub year: Option<i32>,
}
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.