Enum google_api_proto::google::cloud::billing::budgets::v1beta1::filter::UsagePeriod
source · pub enum UsagePeriod {
CalendarPeriod(i32),
CustomPeriod(CustomPeriod),
}
Expand description
Multiple options to choose the budget’s time period, specifying that only
usage that occurs during this time period should be included in the budget.
If not set, the usage_period
defaults to CalendarPeriod.MONTH.
Variants§
CalendarPeriod(i32)
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget will track usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it will track usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
CustomPeriod(CustomPeriod)
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
Implementations§
source§impl UsagePeriod
impl UsagePeriod
sourcepub fn merge<B>(
field: &mut Option<UsagePeriod>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<UsagePeriod>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for UsagePeriod
impl Clone for UsagePeriod
source§fn clone(&self) -> UsagePeriod
fn clone(&self) -> UsagePeriod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsagePeriod
impl Debug for UsagePeriod
source§impl PartialEq for UsagePeriod
impl PartialEq for UsagePeriod
source§fn eq(&self, other: &UsagePeriod) -> bool
fn eq(&self, other: &UsagePeriod) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsagePeriod
Auto Trait Implementations§
impl Freeze for UsagePeriod
impl RefUnwindSafe for UsagePeriod
impl Send for UsagePeriod
impl Sync for UsagePeriod
impl Unpin for UsagePeriod
impl UnwindSafe for UsagePeriod
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request