Enum kanidm_cli::GroupOpt
source · pub enum GroupOpt {
List(CommonOpt),
Get(Named),
Create {
name: String,
entry_managed_by: Option<String>,
copt: CommonOpt,
},
Delete(Named),
ListMembers(Named),
SetMembers(GroupNamedMembers),
SetEntryManagedBy {
name: String,
entry_managed_by: String,
copt: CommonOpt,
},
PurgeMembers(Named),
AddMembers(GroupNamedMembers),
RemoveMembers(GroupNamedMembers),
Posix {
commands: GroupPosix,
},
AccountPolicy {
commands: GroupAccountPolicyOpt,
},
}
Variants§
List(CommonOpt)
List all groups
Get(Named)
View a specific group
Create
Fields
Create a new group
Delete(Named)
Delete a group
ListMembers(Named)
List the members of a group
SetMembers(GroupNamedMembers)
Set the exact list of members that this group should contain, removing any not listed in the set operation.
SetEntryManagedBy
Fields
Set a new entry-managed-by for this group.
PurgeMembers(Named)
Delete all members of a group.
AddMembers(GroupNamedMembers)
Add new members to a group
RemoveMembers(GroupNamedMembers)
Remove the named members from this group
Posix
Fields
§
commands: GroupPosix
Manage posix extensions for this group allowing groups to be used on unix/linux systems
AccountPolicy
Fields
§
commands: GroupAccountPolicyOpt
Manage the policies that apply to members of this group.
Implementations§
Trait Implementations§
source§impl FromArgMatches for GroupOpt
impl FromArgMatches for GroupOpt
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 GroupOpt
impl Subcommand for GroupOpt
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 GroupOpt
impl Send for GroupOpt
impl Sync for GroupOpt
impl Unpin for GroupOpt
impl UnwindSafe for GroupOpt
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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