pub struct UserRecord {
pub public_key: String,
pub display_name: Option<String>,
pub is_admin: bool,
pub created_at: DateTime<Utc>,
}Expand description
A single user entry within the users config.
Fields§
§public_key: String§display_name: Option<String>§is_admin: bool§created_at: DateTime<Utc>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 · 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