pub struct UsageThreshold {
pub lago_id: Uuid,
pub amount_cents: i64,
pub recurring: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub threshold_display_name: Option<String>,
}Expand description
Represents a usage threshold in the Lago billing system.
Usage thresholds define spending limits that can trigger notifications or actions when usage amounts exceed specified thresholds.
Fields§
§lago_id: Uuid§amount_cents: i64§recurring: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§threshold_display_name: Option<String>Trait Implementations§
Source§impl Clone for UsageThreshold
impl Clone for UsageThreshold
Source§fn clone(&self) -> UsageThreshold
fn clone(&self) -> UsageThreshold
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 UsageThreshold
impl Debug for UsageThreshold
Source§impl<'de> Deserialize<'de> for UsageThreshold
impl<'de> Deserialize<'de> for UsageThreshold
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 UsageThreshold
impl RefUnwindSafe for UsageThreshold
impl Send for UsageThreshold
impl Sync for UsageThreshold
impl Unpin for UsageThreshold
impl UnwindSafe for UsageThreshold
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