pub enum GroupOpt {
Show 15 variants
List(CommonOpt),
Get(Named),
Search {
name: String,
copt: CommonOpt,
},
Create {
name: String,
entry_managed_by: Option<String>,
copt: CommonOpt,
},
Delete(Named),
ListMembers(Named),
SetMembers(GroupNamedMembers),
SetMail {
copt: CommonOpt,
name: String,
mail: Vec<String>,
},
SetEntryManagedBy {
name: String,
entry_managed_by: String,
copt: CommonOpt,
},
Rename {
name: String,
new_name: 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
Search
Search a group by name
Create
Create a new group
Fields
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.
SetMail
Set the exact list of mail addresses that this group is associated with. The first
mail address in the list is the primary
and the remainder are aliases. Setting
an empty list will clear the mail attribute.
SetEntryManagedBy
Set a new entry-managed-by for this group.
Fields
Rename
Rename an existing group
Fields
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
Manage posix extensions for this group allowing groups to be used on unix/linux systems
Fields
§
commands: GroupPosix
AccountPolicy
Manage the policies that apply to members of this group.
Fields
§
commands: GroupAccountPolicyOpt
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
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 GroupOpt
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, 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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