pub struct ApiKey {
pub api_key_id: String,
pub prefix: Option<String>,
pub name: Option<String>,
pub pod_id: Option<String>,
pub inbox_id: Option<String>,
pub used_at: Option<String>,
pub permissions: Option<Value>,
pub created_at: Option<String>,
}Expand description
An API key’s metadata (never its secret material; see CreatedApiKey).
Fields§
§api_key_id: StringUnique key id.
prefix: Option<String>The key’s non-secret prefix, for identification.
name: Option<String>Human-readable name.
pod_id: Option<String>The pod the key is scoped to, when applicable.
inbox_id: Option<String>The inbox the key is scoped to, when applicable.
used_at: Option<String>When the key was last used (RFC 3339).
permissions: Option<Value>The key’s permissions.
created_at: Option<String>When the key was created (RFC 3339).
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 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