pub struct ApiKey {
pub name: String,
pub label: String,
pub limit: f64,
pub disabled: bool,
pub created_at: String,
pub updated_at: String,
pub hash: String,
}Expand description
Metadata for a single API key as returned by the provisioning endpoints.
Note: the secret key value is only ever returned once, in
CreateKeyResponse::key.
Fields§
§name: StringDisplay name.
label: StringInternal label (often equals name).
limit: f64Spend limit in USD (0 means unlimited).
disabled: boolTrue if the key is disabled.
created_at: StringCreation timestamp.
updated_at: StringLast-update timestamp.
hash: StringStable identifier for the key. Use this to address the key in
crate::Client::get_key_by_hash, crate::Client::update_key, and
crate::Client::delete_key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiKey
impl<'de> Deserialize<'de> for ApiKey
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 ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin for ApiKey
impl UnwindSafe for ApiKey
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