pub struct KeySpec {
pub key_id: String,
pub owner_id: String,
pub name: String,
pub prefix: String,
pub scopes: Vec<String>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Specification of a new API key to issue.
Fields§
§key_id: StringKey identifier.
owner_id: StringKey owner.
name: StringDisplay name.
prefix: StringKey prefix.
scopes: Vec<String>Granted scopes.
expires_at: Option<DateTime<Utc>>Optional expiry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeySpec
impl RefUnwindSafe for KeySpec
impl Send for KeySpec
impl Sync for KeySpec
impl Unpin for KeySpec
impl UnsafeUnpin for KeySpec
impl UnwindSafe for KeySpec
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