Struct google_photoslibrary1::api::Date[][src]

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.