pub struct CreateKeyResponse {
pub key_id: String,
pub key: String,
pub name: String,
pub scope: String,
pub namespaces: Option<Vec<String>>,
pub created_at: u64,
pub expires_at: Option<u64>,
pub warning: String,
}Expand description
Response after creating an API key
Fields§
§key_id: StringThe API key ID (for management)
key: StringThe full API key (shown only once!)
name: StringKey name
scope: StringKey scope
namespaces: Option<Vec<String>>Namespaces this key can access
created_at: u64When the key was created (Unix timestamp)
expires_at: Option<u64>When the key expires (Unix timestamp), if set
warning: StringWarning message to save the key
Trait Implementations§
Source§impl Clone for CreateKeyResponse
impl Clone for CreateKeyResponse
Source§fn clone(&self) -> CreateKeyResponse
fn clone(&self) -> CreateKeyResponse
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 CreateKeyResponse
impl Debug for CreateKeyResponse
Source§impl<'de> Deserialize<'de> for CreateKeyResponse
impl<'de> Deserialize<'de> for CreateKeyResponse
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 CreateKeyResponse
impl RefUnwindSafe for CreateKeyResponse
impl Send for CreateKeyResponse
impl Sync for CreateKeyResponse
impl Unpin for CreateKeyResponse
impl UnsafeUnpin for CreateKeyResponse
impl UnwindSafe for CreateKeyResponse
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