pub struct CreateApiKey {
pub user_id: Uuid,
pub org_id: Option<Uuid>,
pub key_hash: String,
pub prefix: String,
pub name: String,
pub scopes: Vec<String>,
pub expires_at: Option<DateTime<Utc>>,
}Fields§
§user_id: Uuid§org_id: Option<Uuid>§key_hash: String§prefix: String§name: String§scopes: Vec<String>§expires_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for CreateApiKey
impl Clone for CreateApiKey
Source§fn clone(&self) -> CreateApiKey
fn clone(&self) -> CreateApiKey
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 moreAuto Trait Implementations§
impl Freeze for CreateApiKey
impl RefUnwindSafe for CreateApiKey
impl Send for CreateApiKey
impl Sync for CreateApiKey
impl Unpin for CreateApiKey
impl UnsafeUnpin for CreateApiKey
impl UnwindSafe for CreateApiKey
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