pub struct CreateUsageThresholdInput {
pub amount_cents: i64,
pub threshold_display_name: Option<String>,
pub recurring: Option<bool>,
}Expand description
Input data for creating a usage threshold.
Fields§
§amount_cents: i64Threshold amount in cents.
threshold_display_name: Option<String>Display name for the threshold.
recurring: Option<bool>Whether the threshold is recurring.
Implementations§
Source§impl CreateUsageThresholdInput
impl CreateUsageThresholdInput
Sourcepub fn with_threshold_display_name(self, name: String) -> Self
pub fn with_threshold_display_name(self, name: String) -> Self
Sets the threshold display name.
Sourcepub fn with_recurring(self, recurring: bool) -> Self
pub fn with_recurring(self, recurring: bool) -> Self
Sets the recurring flag.
Trait Implementations§
Source§impl Clone for CreateUsageThresholdInput
impl Clone for CreateUsageThresholdInput
Source§fn clone(&self) -> CreateUsageThresholdInput
fn clone(&self) -> CreateUsageThresholdInput
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 CreateUsageThresholdInput
impl Debug for CreateUsageThresholdInput
Source§impl<'de> Deserialize<'de> for CreateUsageThresholdInput
impl<'de> Deserialize<'de> for CreateUsageThresholdInput
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
Auto Trait Implementations§
impl Freeze for CreateUsageThresholdInput
impl RefUnwindSafe for CreateUsageThresholdInput
impl Send for CreateUsageThresholdInput
impl Sync for CreateUsageThresholdInput
impl Unpin for CreateUsageThresholdInput
impl UnwindSafe for CreateUsageThresholdInput
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