pub struct UserRecord {
pub id: String,
pub username: String,
pub has_password: bool,
pub is_owner: bool,
pub created_at: String,
pub last_seen_at: Option<String>,
pub class_id: Option<String>,
pub strict_write: bool,
pub totp_enabled: bool,
}Expand description
A vault user (password hash is never exposed via this struct).
Fields§
§id: String§username: String§has_password: boolTrue when the user has a password set (can use username+password auth).
is_owner: bool§created_at: String§last_seen_at: Option<String>§class_id: Option<String>§strict_write: bool§totp_enabled: boolTrue when the user has a confirmed second factor. Enrollment alone does
not set it — see totp_enroll for why the two are separate.
Trait Implementations§
Source§impl Clone for UserRecord
impl Clone for UserRecord
Source§fn clone(&self) -> UserRecord
fn clone(&self) -> UserRecord
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 UserRecord
impl Debug for UserRecord
Source§impl<'de> Deserialize<'de> for UserRecord
impl<'de> Deserialize<'de> for UserRecord
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 UserRecord
impl RefUnwindSafe for UserRecord
impl Send for UserRecord
impl Sync for UserRecord
impl Unpin for UserRecord
impl UnsafeUnpin for UserRecord
impl UnwindSafe for UserRecord
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