pub struct CreatedApiKey {
pub api_key_id: String,
pub api_key: String,
pub prefix: Option<String>,
pub name: Option<String>,
pub pod_id: Option<String>,
pub inbox_id: Option<String>,
pub permissions: Option<ApiKeyPermissions>,
pub created_at: Option<String>,
}Expand description
The response to create_api_key. The full api_key secret is
returned exactly once, here; store it now, as it cannot be retrieved again.
Fields§
§api_key_id: StringUnique key id.
api_key: StringThe full secret key. Shown only on creation.
prefix: Option<String>The key’s non-secret prefix.
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.
permissions: Option<ApiKeyPermissions>The granted permissions.
created_at: Option<String>When the key was created (RFC 3339).
Trait Implementations§
Source§impl Clone for CreatedApiKey
impl Clone for CreatedApiKey
Source§impl Debug for CreatedApiKey
impl Debug for CreatedApiKey
Source§impl<'de> Deserialize<'de> for CreatedApiKey
impl<'de> Deserialize<'de> for CreatedApiKey
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 CreatedApiKey
impl RefUnwindSafe for CreatedApiKey
impl Send for CreatedApiKey
impl Sync for CreatedApiKey
impl Unpin for CreatedApiKey
impl UnsafeUnpin for CreatedApiKey
impl UnwindSafe for CreatedApiKey
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