pub struct NewApiKey {
pub id: Uuid,
pub user_id: Uuid,
pub key_prefix: String,
pub key_hash: String,
pub name: String,
pub scopes: Option<Value>,
pub expires_at: Option<NaiveDateTime>,
pub created_at: NaiveDateTime,
}Fields§
§id: Uuid§user_id: Uuid§key_prefix: String§key_hash: String§name: String§scopes: Option<Value>§expires_at: Option<NaiveDateTime>§created_at: NaiveDateTimeTrait Implementations§
Source§impl<'de> Deserialize<'de> for NewApiKey
impl<'de> Deserialize<'de> for NewApiKey
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 NewApiKey
impl RefUnwindSafe for NewApiKey
impl Send for NewApiKey
impl Sync for NewApiKey
impl Unpin for NewApiKey
impl UnsafeUnpin for NewApiKey
impl UnwindSafe for NewApiKey
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