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, it must match the
currency of the billing account. The currency_code
is provided on
output.
LastPeriodAmount(LastPeriodAmount)
Use the last period’s actual spend as the budget for the present period.
Implementations§
Source§impl BudgetAmount
impl BudgetAmount
Trait Implementations§
Source§impl Clone for BudgetAmount
impl Clone for BudgetAmount
Source§fn clone(&self) -> BudgetAmount
fn clone(&self) -> BudgetAmount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BudgetAmount
impl Debug for BudgetAmount
Source§impl PartialEq for BudgetAmount
impl PartialEq for BudgetAmount
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request