pub struct ExportApiKey {
pub id: String,
pub name: String,
pub key_prefix: String,
pub key_hash: String,
pub created_at: String,
pub expires_at: Option<String>,
pub revoked: bool,
}Expand description
An API key entry — raw key values are never exported, only metadata.
Fields§
§id: StringInternal API key ID.
name: StringHuman-readable key name (e.g. "CI Bot").
key_prefix: StringDisplay prefix visible in the dashboard (e.g. "llmtxt_abcd1234").
key_hash: StringSHA-256 hex digest of the raw key. Allows users to identify keys.
created_at: StringISO 8601 creation timestamp.
expires_at: Option<String>ISO 8601 expiry timestamp, or null for no-expiry keys.
revoked: boolWhether the key was revoked at export time.
Trait Implementations§
Source§impl Clone for ExportApiKey
impl Clone for ExportApiKey
Source§fn clone(&self) -> ExportApiKey
fn clone(&self) -> ExportApiKey
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 ExportApiKey
impl Debug for ExportApiKey
Source§impl<'de> Deserialize<'de> for ExportApiKey
impl<'de> Deserialize<'de> for ExportApiKey
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 ExportApiKey
impl PartialEq for ExportApiKey
Source§impl Serialize for ExportApiKey
impl Serialize for ExportApiKey
impl StructuralPartialEq for ExportApiKey
Auto Trait Implementations§
impl Freeze for ExportApiKey
impl RefUnwindSafe for ExportApiKey
impl Send for ExportApiKey
impl Sync for ExportApiKey
impl Unpin for ExportApiKey
impl UnsafeUnpin for ExportApiKey
impl UnwindSafe for ExportApiKey
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