Enum google_api_proto::google::cloud::billing::budgets::v1::budget_amount::BudgetAmount
source · pub enum BudgetAmount {
SpecifiedAmount(Money),
LastPeriodAmount(LastPeriodAmount),
}
Expand description
Specification for what amount to use as the budget.
Variants§
SpecifiedAmount(Money)
A specified amount to use as the budget.
currency_code
is optional. If specified when creating a budget, it must
match the currency of the billing account. If specified when updating a
budget, it must match the currency_code of the existing budget.
The currency_code
is provided on output.
LastPeriodAmount(LastPeriodAmount)
Use the last period’s actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget’s time period is a [Filter.calendar_period][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
Implementations§
source§impl BudgetAmount
impl BudgetAmount
sourcepub fn merge(
field: &mut Option<BudgetAmount>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<BudgetAmount>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
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 BudgetAmount
impl Clone for BudgetAmount
source§fn clone(&self) -> BudgetAmount
fn clone(&self) -> BudgetAmount
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BudgetAmount
impl Debug for BudgetAmount
source§impl PartialEq for BudgetAmount
impl PartialEq for BudgetAmount
source§fn eq(&self, other: &BudgetAmount) -> bool
fn eq(&self, other: &BudgetAmount) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BudgetAmount
Auto Trait Implementations§
impl Freeze for BudgetAmount
impl RefUnwindSafe for BudgetAmount
impl Send for BudgetAmount
impl Sync for BudgetAmount
impl Unpin for BudgetAmount
impl UnwindSafe for BudgetAmount
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