pub enum AdminUserCommand {
Create {
username: String,
password_file: Option<PathBuf>,
role: String,
contact: Option<String>,
},
List {
limit: i64,
offset: i64,
json: bool,
},
Show {
username: String,
json: bool,
},
Passwd {
username: String,
password_file: Option<PathBuf>,
},
Role {
username: String,
role: String,
},
Contact {
username: String,
contact: Option<String>,
},
Delete {
username: String,
},
Disable {
username: String,
},
Enable {
username: String,
},
Totp {
command: AdminUserTotpCommand,
},
}Variants§
Create
Create an operator. The password is read from --password-file, or
from stdin.
Fields
§
password_file: Option<PathBuf>Read the password from this file instead of stdin. A single trailing newline is stripped.
List
List operators, oldest first. Never shows a password hash.
Fields
Show
Show one operator, second factor included. Never shows a password hash.
Passwd
Replace an operator’s password, revoking every session they hold.
Fields
Role
Change an operator’s privilege tier, revoking every session they hold.
Contact
Set or clear the address an operator receives security notifications
at. Omit --contact (or pass an empty value) to clear it.
Fields
Delete
Delete an operator and every session of theirs.
Disable
Bar an operator from signing in, dropping their current sessions.
Enable
Undo disable.
Totp
Inspect or remove an operator’s second factor.
Fields
§
command: AdminUserTotpCommandTrait Implementations§
Source§impl FromArgMatches for AdminUserCommand
impl FromArgMatches for AdminUserCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for AdminUserCommand
impl Subcommand for AdminUserCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AdminUserCommand
impl RefUnwindSafe for AdminUserCommand
impl Send for AdminUserCommand
impl Sync for AdminUserCommand
impl Unpin for AdminUserCommand
impl UnsafeUnpin for AdminUserCommand
impl UnwindSafe for AdminUserCommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more