pub struct CreateSpendAlertBody {
pub threshold_amount: i64,
pub currency: CreateSpendAlertBodyCurrency,
pub interval: CreateSpendAlertBodyInterval,
pub notification_channel: SpendAlertNotificationChannel,
}Available on crate feature
administration-types only.Expand description
Parameters for creating or updating a spend alert.
Fields§
§threshold_amount: i64The alert threshold amount, in cents.
currency: CreateSpendAlertBodyCurrencyThe currency for the threshold amount.
interval: CreateSpendAlertBodyIntervalThe time interval for evaluating spend against the threshold.
notification_channel: SpendAlertNotificationChannelTrait Implementations§
Source§impl Clone for CreateSpendAlertBody
impl Clone for CreateSpendAlertBody
Source§fn clone(&self) -> CreateSpendAlertBody
fn clone(&self) -> CreateSpendAlertBody
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 CreateSpendAlertBody
impl Debug for CreateSpendAlertBody
Source§impl<'de> Deserialize<'de> for CreateSpendAlertBody
impl<'de> Deserialize<'de> for CreateSpendAlertBody
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 CreateSpendAlertBody
impl PartialEq for CreateSpendAlertBody
Source§impl Serialize for CreateSpendAlertBody
impl Serialize for CreateSpendAlertBody
impl StructuralPartialEq for CreateSpendAlertBody
Auto Trait Implementations§
impl Freeze for CreateSpendAlertBody
impl RefUnwindSafe for CreateSpendAlertBody
impl Send for CreateSpendAlertBody
impl Sync for CreateSpendAlertBody
impl Unpin for CreateSpendAlertBody
impl UnsafeUnpin for CreateSpendAlertBody
impl UnwindSafe for CreateSpendAlertBody
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