pub struct CreatedApiKey {
pub raw_key: String,
pub name: String,
pub user_id: String,
pub scopes: Vec<String>,
pub created_at: String,
}Expand description
Result returned from key creation. Contains the raw key (shown only once) alongside the stored metadata.
Fields§
§raw_key: StringThe raw API key. This is the only time the caller will see it.
name: String§user_id: String§scopes: Vec<String>§created_at: StringTrait Implementations§
Source§impl Clone for CreatedApiKey
impl Clone for CreatedApiKey
Source§fn clone(&self) -> CreatedApiKey
fn clone(&self) -> CreatedApiKey
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 moreAuto 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