pub struct ApiKeyCreated {
pub id: String,
pub name: String,
pub scope: String,
pub key: String,
pub created_at: String,
}Expand description
Response from ApiKeys::create. Includes the full plaintext key — store it now.
Fields§
§id: StringAPI key id.
name: StringDisplay name.
scope: StringScope name.
key: StringThe full plaintext API key. Only returned once.
created_at: StringCreation timestamp.
Trait Implementations§
Source§impl Clone for ApiKeyCreated
impl Clone for ApiKeyCreated
Source§fn clone(&self) -> ApiKeyCreated
fn clone(&self) -> ApiKeyCreated
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 ApiKeyCreated
impl Debug for ApiKeyCreated
Source§impl<'de> Deserialize<'de> for ApiKeyCreated
impl<'de> Deserialize<'de> for ApiKeyCreated
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 ApiKeyCreated
impl RefUnwindSafe for ApiKeyCreated
impl Send for ApiKeyCreated
impl Sync for ApiKeyCreated
impl Unpin for ApiKeyCreated
impl UnsafeUnpin for ApiKeyCreated
impl UnwindSafe for ApiKeyCreated
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