pub enum UserCommand {
Create {
username: String,
password: bool,
},
SetPassword {
username: String,
},
AddRole {
username: String,
role: String,
},
RemoveRole {
username: String,
role: String,
},
AddGroup {
username: String,
group: String,
},
RemoveGroup {
username: String,
group: String,
},
}
Expand description
A command operating on User
s.
Variants§
Create
Fields
Creates a new user.
SetPassword
Sets an existing user’s password. The password will be prompted for over stdin.
AddRole
Adds a role to a user.
RemoveRole
Fields
Removes a role from user.
AddGroup
Adds a role to a user.
RemoveGroup
Fields
Removes a permission group from user.
Trait Implementations§
source§impl Debug for UserCommand
impl Debug for UserCommand
source§impl FromArgMatches for UserCommand
impl FromArgMatches for UserCommand
source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches
) -> Result<UserCommand, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches ) -> Result<UserCommand, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<UserCommand, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<UserCommand, 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 UserCommand
impl Subcommand for UserCommand
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
source§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 RefUnwindSafe for UserCommand
impl Send for UserCommand
impl Sync for UserCommand
impl Unpin for UserCommand
impl UnwindSafe for UserCommand
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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