pub struct CodingPlanUsageData {
pub level: Option<String>,
pub limits: Vec<CodingPlanQuotaLimit>,
}Expand description
data payload returned by the quota-limit endpoint.
level is the subscribed plan tier. Depending on the upstream deployment it
may be returned as a human-readable tier ("max" / "pro" / "lite") or
a numeric tier code, which is normalized to a string here. limits lists
each quota window currently in effect for the account.
Fields§
§level: Option<String>Subscribed plan level identifier.
limits: Vec<CodingPlanQuotaLimit>Active quota windows (5-hour token limit, weekly token limit, …).
Trait Implementations§
Source§impl Clone for CodingPlanUsageData
impl Clone for CodingPlanUsageData
Source§fn clone(&self) -> CodingPlanUsageData
fn clone(&self) -> CodingPlanUsageData
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 CodingPlanUsageData
impl Debug for CodingPlanUsageData
Source§impl Default for CodingPlanUsageData
impl Default for CodingPlanUsageData
Source§fn default() -> CodingPlanUsageData
fn default() -> CodingPlanUsageData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodingPlanUsageData
impl<'de> Deserialize<'de> for CodingPlanUsageData
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 CodingPlanUsageData
impl RefUnwindSafe for CodingPlanUsageData
impl Send for CodingPlanUsageData
impl Sync for CodingPlanUsageData
impl Unpin for CodingPlanUsageData
impl UnsafeUnpin for CodingPlanUsageData
impl UnwindSafe for CodingPlanUsageData
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