pub struct KeyDetails {
pub id: String,
pub name: String,
pub key_prefix: String,
pub scope: Option<Value>,
pub spent_ticks: i64,
pub revoked: bool,
pub created_at: Option<String>,
pub last_used: Option<String>,
}Expand description
Details about an API key (returned on creation and listing).
Fields§
§id: StringUnique key identifier.
name: StringHuman-readable name.
key_prefix: StringFirst characters of the key for identification.
scope: Option<Value>Scope restrictions.
spent_ticks: i64Amount spent by this key in ticks.
revoked: boolWhether the key has been revoked.
created_at: Option<String>Creation timestamp (RFC 3339).
last_used: Option<String>Last usage timestamp (RFC 3339). Only present in list responses.
Trait Implementations§
Source§impl Clone for KeyDetails
impl Clone for KeyDetails
Source§fn clone(&self) -> KeyDetails
fn clone(&self) -> KeyDetails
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyDetails
impl Debug for KeyDetails
Source§impl<'de> Deserialize<'de> for KeyDetails
impl<'de> Deserialize<'de> for KeyDetails
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 KeyDetails
impl RefUnwindSafe for KeyDetails
impl Send for KeyDetails
impl Sync for KeyDetails
impl Unpin for KeyDetails
impl UnsafeUnpin for KeyDetails
impl UnwindSafe for KeyDetails
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