pub struct ProjectSpendAlert {
pub id: String,
pub object: String,
pub threshold_amount: i64,
pub currency: ProjectSpendAlertCurrency,
pub interval: ProjectSpendAlertInterval,
pub notification_channel: SpendAlertNotificationChannel,
}Available on crate feature
administration-types only.Expand description
Represents a spend alert configured at the project level.
Fields§
§id: StringThe identifier, which can be referenced in API endpoints.
object: StringThe object type, which is always project.spend_alert.
threshold_amount: i64The alert threshold amount, in cents.
currency: ProjectSpendAlertCurrencyThe currency for the threshold amount.
interval: ProjectSpendAlertIntervalThe time interval for evaluating spend against the threshold.
notification_channel: SpendAlertNotificationChannelTrait Implementations§
Source§impl Clone for ProjectSpendAlert
impl Clone for ProjectSpendAlert
Source§fn clone(&self) -> ProjectSpendAlert
fn clone(&self) -> ProjectSpendAlert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectSpendAlert
impl Debug for ProjectSpendAlert
Source§impl<'de> Deserialize<'de> for ProjectSpendAlert
impl<'de> Deserialize<'de> for ProjectSpendAlert
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectSpendAlert
impl PartialEq for ProjectSpendAlert
Source§impl Serialize for ProjectSpendAlert
impl Serialize for ProjectSpendAlert
impl StructuralPartialEq for ProjectSpendAlert
Auto Trait Implementations§
impl Freeze for ProjectSpendAlert
impl RefUnwindSafe for ProjectSpendAlert
impl Send for ProjectSpendAlert
impl Sync for ProjectSpendAlert
impl Unpin for ProjectSpendAlert
impl UnsafeUnpin for ProjectSpendAlert
impl UnwindSafe for ProjectSpendAlert
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