pub struct KeyData {
pub label: String,
pub limit: Option<f64>,
pub usage: f64,
pub is_free_tier: bool,
pub limit_remaining: Option<f64>,
pub is_provisioning_key: bool,
pub rate_limit: Option<KeyRateLimit>,
}Expand description
Information about the current API key.
Fields§
§label: StringDisplay label for the key.
limit: Option<f64>Configured spend limit. None if no limit is set.
usage: f64Lifetime usage in USD.
is_free_tier: boolTrue if the key is on the free tier.
limit_remaining: Option<f64>Remaining spend allowance. None when no limit is set.
is_provisioning_key: booltrue if this is a provisioning key (can manage other keys).
rate_limit: Option<KeyRateLimit>Rate-limit applied to this key, when set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyData
impl<'de> Deserialize<'de> for KeyData
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 KeyData
Auto Trait Implementations§
impl Freeze for KeyData
impl RefUnwindSafe for KeyData
impl Send for KeyData
impl Sync for KeyData
impl Unpin for KeyData
impl UnsafeUnpin for KeyData
impl UnwindSafe for KeyData
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