Struct mailpot_web::auth::User
source · pub struct User {
pub ssh_signature: String,
pub role: Role,
pub pk: i64,
pub name: Option<String>,
pub address: String,
pub public_key: Option<String>,
pub password: String,
pub enabled: bool,
}
Fields§
§ssh_signature: String
SSH signature.
role: Role
User role.
pk: i64
Database primary key.
name: Option<String>
Accounts’s display name, optional.
address: String
Account’s e-mail address.
public_key: Option<String>
GPG public key.
password: String
SSH public key.
enabled: bool
Whether this account is enabled.
Trait Implementations§
source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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