pub struct APIKeySummary {
pub key_id: String,
pub name: String,
pub prefix: String,
pub kind: APIKeySummaryKind,
pub scopes: Vec<String>,
pub status: APIKeySummaryStatus,
pub created_at: String,
pub expires_at: Option<String>,
pub last_used_at: Option<String>,
}Expand description
An API key as listed. The secret is shown once, at creation, and never here.
Fields§
§key_id: String§name: String§prefix: String§kind: APIKeySummaryKindWhat the key IS: session was minted by an OTP/OAuth sign-in and carries a user_id;
api_key was created deliberately from Settings or the CLI.
scopes: Vec<String>§status: APIKeySummaryStatus§created_at: String§expires_at: Option<String>§last_used_at: Option<String>Trait Implementations§
Source§impl Clone for APIKeySummary
impl Clone for APIKeySummary
Source§fn clone(&self) -> APIKeySummary
fn clone(&self) -> APIKeySummary
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 APIKeySummary
impl Debug for APIKeySummary
Source§impl Default for APIKeySummary
impl Default for APIKeySummary
Source§fn default() -> APIKeySummary
fn default() -> APIKeySummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for APIKeySummary
impl<'de> Deserialize<'de> for APIKeySummary
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
Source§impl PartialEq for APIKeySummary
impl PartialEq for APIKeySummary
Source§impl Serialize for APIKeySummary
impl Serialize for APIKeySummary
impl StructuralPartialEq for APIKeySummary
Auto Trait Implementations§
impl Freeze for APIKeySummary
impl RefUnwindSafe for APIKeySummary
impl Send for APIKeySummary
impl Sync for APIKeySummary
impl Unpin for APIKeySummary
impl UnsafeUnpin for APIKeySummary
impl UnwindSafe for APIKeySummary
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