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

pub struct Date {
    pub day: Option<i32>,
    pub month: Option<i32>,
    pub year: Option<i32>,
}

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

impl Clone for Date[src]

impl Debug for Date[src]

impl Default for Date[src]

impl<'de> Deserialize<'de> for Date[src]

impl Part for Date[src]

impl Serialize for Date[src]

Auto Trait Implementations

impl RefUnwindSafe for Date

impl Send for Date

impl Sync for Date

impl Unpin for Date

impl UnwindSafe for Date

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.