pub struct SpendLimit {
pub name: String,
pub limit: Option<String>,
pub alert_thresholds_percent: Vec<i32>,
pub notification_emails: Vec<String>,
pub update_time: Option<Timestamp>,
}Expand description
A billing account’s spend limit: the most it means to spend in a calendar month, and when to be told. Each threshold alerts once a month, the first time the month’s spend crosses it.
Fields§
§name: StringThe spend limit’s resource name,
organizations/{organization}/billingAccounts/{billing_account}/spendLimit.
limit: Option<String>The amount per calendar month in EUR, before VAT, as a decimal string
such as 500.00; more than zero. Unset means no spend limit.
alert_thresholds_percent: Vec<i32>The percentages of limit whose crossing emails an alert, such as 80
and 100; each from 1 to 32767, so a threshold can lie beyond the
limit. Empty while there is no limit.
notification_emails: Vec<String>Where alerts are sent. Empty while there is no limit, and an alert
with no recipient is sent to nobody.
update_time: Option<Timestamp>When the spend limit was last set; unset while there is none.
Implementations§
Trait Implementations§
Source§impl Clone for SpendLimit
impl Clone for SpendLimit
Source§impl Debug for SpendLimit
impl Debug for SpendLimit
Source§impl Default for SpendLimit
impl Default for SpendLimit
Source§impl<'de> Deserialize<'de> for SpendLimit
impl<'de> Deserialize<'de> for SpendLimit
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>,
impl Eq for SpendLimit
Source§impl Hash for SpendLimit
impl Hash for SpendLimit
Source§impl Message for SpendLimit
impl Message for SpendLimit
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SpendLimit
impl PartialEq for SpendLimit
Source§impl Serialize for SpendLimit
impl Serialize for SpendLimit
impl StructuralPartialEq for SpendLimit
Auto Trait Implementations§
impl Forget for SpendLimit
impl Freeze for SpendLimit
impl Move for SpendLimit
impl RefUnwindSafe for SpendLimit
impl Send for SpendLimit
impl Sync for SpendLimit
impl Unpin for SpendLimit
impl UnsafeUnpin for SpendLimit
impl UnwindSafe for SpendLimit
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.