pub struct ProjectSpendLimitResource {
pub object: String,
pub threshold_amount: i64,
pub currency: SpendLimitCurrency,
pub interval: SpendLimitInterval,
pub enforcement: SpendLimitEnforcement,
}Available on crate feature
administration-types only.Expand description
Represents a hard spend limit configured at the project level.
Fields§
§object: StringThe object type, which is always project.spend_limit.
threshold_amount: i64The hard spend limit amount, in cents.
currency: SpendLimitCurrencyThe currency for the threshold amount. Currently, only USD is supported.
interval: SpendLimitIntervalThe time interval for evaluating spend against the threshold. Currently, only month is supported.
enforcement: SpendLimitEnforcementThe current enforcement state of the hard spend limit.
Trait Implementations§
Source§impl Clone for ProjectSpendLimitResource
impl Clone for ProjectSpendLimitResource
Source§fn clone(&self) -> ProjectSpendLimitResource
fn clone(&self) -> ProjectSpendLimitResource
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 ProjectSpendLimitResource
impl Debug for ProjectSpendLimitResource
Source§impl<'de> Deserialize<'de> for ProjectSpendLimitResource
impl<'de> Deserialize<'de> for ProjectSpendLimitResource
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
impl StructuralPartialEq for ProjectSpendLimitResource
Auto Trait Implementations§
impl Freeze for ProjectSpendLimitResource
impl RefUnwindSafe for ProjectSpendLimitResource
impl Send for ProjectSpendLimitResource
impl Sync for ProjectSpendLimitResource
impl Unpin for ProjectSpendLimitResource
impl UnsafeUnpin for ProjectSpendLimitResource
impl UnwindSafe for ProjectSpendLimitResource
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