pub struct UsageStatsSpend {
pub current_period_cents: Option<i32>,
pub credits_remaining_cents: Option<i32>,
pub x_spend_cents: Option<i32>,
pub x_spend_limit_cents: Option<Option<i32>>,
}Expand description
UsageStatsSpend : Metronome users only. Current-period spend summary.
Fields§
§current_period_cents: Option<i32>Total current-period spend in cents (all products combined).
credits_remaining_cents: Option<i32>Free-tier credit remaining in cents. Applied before any charge.
x_spend_cents: Option<i32>Current-period X/Twitter API spend in cents, summed from xApiCallsByOperation × per-operation prices. Tier-agnostic (covers every price including the $0.200 URL tier). Rounded up for conservative enforcement against xSpendLimitCents.
x_spend_limit_cents: Option<Option<i32>>Monthly X spend cap set by the account owner, or null if no cap. When current X spend hits this cap, analytics and inbox sync are auto-paused for X accounts. Publishing is never blocked by this cap.
Implementations§
Source§impl UsageStatsSpend
impl UsageStatsSpend
Sourcepub fn new() -> UsageStatsSpend
pub fn new() -> UsageStatsSpend
Metronome users only. Current-period spend summary.
Trait Implementations§
Source§impl Clone for UsageStatsSpend
impl Clone for UsageStatsSpend
Source§fn clone(&self) -> UsageStatsSpend
fn clone(&self) -> UsageStatsSpend
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 UsageStatsSpend
impl Debug for UsageStatsSpend
Source§impl Default for UsageStatsSpend
impl Default for UsageStatsSpend
Source§fn default() -> UsageStatsSpend
fn default() -> UsageStatsSpend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageStatsSpend
impl<'de> Deserialize<'de> for UsageStatsSpend
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 UsageStatsSpend
impl PartialEq for UsageStatsSpend
Source§fn eq(&self, other: &UsageStatsSpend) -> bool
fn eq(&self, other: &UsageStatsSpend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageStatsSpend
impl Serialize for UsageStatsSpend
impl StructuralPartialEq for UsageStatsSpend
Auto Trait Implementations§
impl Freeze for UsageStatsSpend
impl RefUnwindSafe for UsageStatsSpend
impl Send for UsageStatsSpend
impl Sync for UsageStatsSpend
impl Unpin for UsageStatsSpend
impl UnsafeUnpin for UsageStatsSpend
impl UnwindSafe for UsageStatsSpend
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