pub struct BillingAlert {
pub alert_type: BillingAlertAlertType,
pub id: BillingAlertId,
pub livemode: bool,
pub status: Option<BillingAlertStatus>,
pub title: String,
pub usage_threshold: Option<ThresholdsResourceUsageThresholdConfig>,
}
Expand description
A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
Fields§
§alert_type: BillingAlertAlertType
Defines the type of the alert.
id: BillingAlertId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
status: Option<BillingAlertStatus>
Status of the alert. This can be active, inactive or archived.
title: String
Title of the alert.
usage_threshold: Option<ThresholdsResourceUsageThresholdConfig>
Encapsulates configuration of the alert to monitor usage on a specific Billing Meter.
Trait Implementations§
Source§impl Clone for BillingAlert
impl Clone for BillingAlert
Source§fn clone(&self) -> BillingAlert
fn clone(&self) -> BillingAlert
Returns a duplicate 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 BillingAlert
impl Debug for BillingAlert
Source§impl Deserialize for BillingAlert
impl Deserialize for BillingAlert
Source§impl FromValueOpt for BillingAlert
impl FromValueOpt for BillingAlert
fn from_value(v: Value) -> Option<Self>
Source§impl Object for BillingAlert
impl Object for BillingAlert
Source§impl ObjectDeser for BillingAlert
impl ObjectDeser for BillingAlert
Auto Trait Implementations§
impl Freeze for BillingAlert
impl RefUnwindSafe for BillingAlert
impl Send for BillingAlert
impl Sync for BillingAlert
impl Unpin for BillingAlert
impl UnwindSafe for BillingAlert
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