pub struct CreateKeyResponse {
pub data: ApiKey,
pub key: Option<String>,
}Expand description
Response from POST /keys — the only place the secret key is ever
returned. Store it immediately; it cannot be recovered later.
Fields§
§data: ApiKeyKey metadata.
key: Option<String>Secret API key value. Returned only on creation. None from any
other endpoint.
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 (const: unstable) · 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 Default for CreateKeyResponse
impl Default for CreateKeyResponse
Source§fn default() -> CreateKeyResponse
fn default() -> CreateKeyResponse
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for CreateKeyResponse
impl PartialEq for CreateKeyResponse
Source§impl Serialize for CreateKeyResponse
impl Serialize for CreateKeyResponse
impl StructuralPartialEq for CreateKeyResponse
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