pub struct Account {
pub pk: i64,
pub name: Option<String>,
pub address: String,
pub public_key: Option<String>,
pub password: String,
pub enabled: bool,
}
Expand description
An account entry.
Fields§
§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 Account
impl<'de> Deserialize<'de> for Account
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
source§impl PartialEq<Account> for Account
impl PartialEq<Account> for Account
impl Eq for Account
impl StructuralEq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.