pub struct KeyInfo {
pub plan: String,
pub plan_started_at: String,
pub plan_status: String,
pub portal_url: String,
pub usage: KeyUsage,
}Expand description
API key information
Fields§
§plan: StringName of the API plan
plan_started_at: StringA date when the plan started in RFC3999 (ISO-8601) format
plan_status: StringStatus of the plan. There are 3 possible statuses: active - the subscription is active;
past_due - the subscription payment failed. If payment is not made within 7 days, then
the subscription will expire; inactive - the subscription is inactive.
portal_url: StringAPI Customer Portal URL
usage: KeyUsageMonthly usage for the API key
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyInfo
impl<'de> Deserialize<'de> for KeyInfo
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 KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnwindSafe for KeyInfo
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