pub struct ApiKey {
pub id: String,
pub name: Option<String>,
pub scopes: Vec<ApiKeyScope>,
pub last_used_at: Option<String>,
pub expires_at: Option<String>,
pub revoked_at: Option<String>,
pub created_at: String,
}Expand description
An existing API key (without the secret).
Fields§
§id: StringKey identifier.
name: Option<String>Human-readable name.
scopes: Vec<ApiKeyScope>Permission scopes.
last_used_at: Option<String>Last usage timestamp.
expires_at: Option<String>Expiration timestamp.
revoked_at: Option<String>Revocation timestamp.
created_at: StringCreation timestamp.
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
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin 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