pub struct CreateNamespaceKeyResponse {
pub key_id: String,
pub key: String,
pub name: String,
pub namespace: String,
pub created_at: u64,
pub expires_at: Option<u64>,
pub warning: String,
}Expand description
Response from POST /v1/namespaces/:namespace/keys (SEC-1).
The key field contains the raw API key and is shown only once.
Fields§
§key_id: String§key: StringThe raw API key — store it securely, cannot be retrieved again.
name: String§namespace: String§created_at: u64§expires_at: Option<u64>§warning: StringTrait Implementations§
Source§impl Clone for CreateNamespaceKeyResponse
impl Clone for CreateNamespaceKeyResponse
Source§fn clone(&self) -> CreateNamespaceKeyResponse
fn clone(&self) -> CreateNamespaceKeyResponse
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 CreateNamespaceKeyResponse
impl Debug for CreateNamespaceKeyResponse
Source§impl<'de> Deserialize<'de> for CreateNamespaceKeyResponse
impl<'de> Deserialize<'de> for CreateNamespaceKeyResponse
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 CreateNamespaceKeyResponse
impl RefUnwindSafe for CreateNamespaceKeyResponse
impl Send for CreateNamespaceKeyResponse
impl Sync for CreateNamespaceKeyResponse
impl Unpin for CreateNamespaceKeyResponse
impl UnsafeUnpin for CreateNamespaceKeyResponse
impl UnwindSafe for CreateNamespaceKeyResponse
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