pub struct GoogleTypeDate {
pub month: Option<i32>,
pub year: Option<i32>,
pub day: Option<i32>,
}Expand description
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
This type is not used in any activity, and only used as part of another schema.
Fields§
§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.
day: Option<i32>Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn’t significant.
Trait Implementations§
Source§impl Clone for GoogleTypeDate
impl Clone for GoogleTypeDate
Source§fn clone(&self) -> GoogleTypeDate
fn clone(&self) -> GoogleTypeDate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleTypeDate
impl Debug for GoogleTypeDate
Source§impl Default for GoogleTypeDate
impl Default for GoogleTypeDate
Source§fn default() -> GoogleTypeDate
fn default() -> GoogleTypeDate
Source§impl<'de> Deserialize<'de> for GoogleTypeDate
impl<'de> Deserialize<'de> for GoogleTypeDate
Source§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>,
Source§impl Serialize for GoogleTypeDate
impl Serialize for GoogleTypeDate
impl Part for GoogleTypeDate
Auto Trait Implementations§
impl Freeze for GoogleTypeDate
impl RefUnwindSafe for GoogleTypeDate
impl Send for GoogleTypeDate
impl Sync for GoogleTypeDate
impl Unpin for GoogleTypeDate
impl UnwindSafe for GoogleTypeDate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more