pub struct AccountPut {
pub name: String,
pub secret: Option<String>,
pub groups: Option<Vec<String>>,
pub disabled: Option<bool>,
pub expires_unix: Option<i64>,
pub display_name: Option<String>,
pub proved_current: bool,
pub reset: bool,
pub unlock: bool,
}Expand description
An account to make, or what to change of one there is. A field not said is left as it is.
Fields§
§name: StringThe account’s canonical name; it selects the account to change.
secret: Option<String>What proves the account from now on: a password, or a peer certificate’s fingerprint. A provider that makes secrets itself takes none and answers with the one it made.
groups: Option<Vec<String>>Groups, replacing the ones there are.
disabled: Option<bool>Whether the account is refused.
expires_unix: Option<i64>When it stops being taken, in seconds since the Unix epoch.
display_name: Option<String>The label an enrolment shows the person (an authenticator app’s account line); the account’s name when absent. Providers that keep no such label ignore it.
proved_current: boolThe caller has checked the account’s current secret in this request (a code from it, or a sign-in that just used it). A provider that lets a put replace a secret the person holds refuses the replacement without it; one that does not ignores it. Absent is false.
reset: boolAn administrator’s reset: the provider takes the account’s factor away and keeps a mark
(AccountInfo::reset) until a new one is confirmed. A provider that keeps no such
mark refuses it as unsupported. Absent is false.
unlock: boolAn administrator’s unlock: the provider clears the account’s failure count and any
delay and notes when (AccountInfo::unlocked_unix). A provider that counts no
failures refuses it as unsupported. Absent is false.
Trait Implementations§
Source§impl Clone for AccountPut
impl Clone for AccountPut
Source§impl Debug for AccountPut
impl Debug for AccountPut
Source§impl Default for AccountPut
impl Default for AccountPut
impl Eq for AccountPut
Source§impl FromValue for AccountPut
impl FromValue for AccountPut
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.