#[non_exhaustive]pub enum CalendarPeriod {
Unspecified,
Day,
Week,
Fortnight,
Month,
Quarter,
Half,
Year,
UnknownValue(UnknownValue),
}Expand description
A CalendarPeriod represents the abstract concept of a time period that has
a canonical start. Grammatically, “the start of the current
CalendarPeriod.” All calendar times begin at midnight UTC.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Undefined period, raises an error.
Day
A day.
Week
A week. Weeks begin on Monday, following ISO 8601.
Fortnight
A fortnight. The first calendar fortnight of the year begins at the start of week 1 according to ISO 8601.
Month
A month.
Quarter
A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each year.
Half
A half-year. Half-years start on dates 1-Jan and 1-Jul.
Year
A year.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using CalendarPeriod::value or CalendarPeriod::name.
Implementations§
Trait Implementations§
Source§impl Clone for CalendarPeriod
impl Clone for CalendarPeriod
Source§fn clone(&self) -> CalendarPeriod
fn clone(&self) -> CalendarPeriod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more