pub enum GroupOpt {
Show 16 variants
List,
Get(Named),
Search {
name: String,
},
Create {
name: String,
entry_managed_by: Option<String>,
},
Delete(Named),
ListMembers(Named),
SetMembers(GroupNamedMembers),
SetMail {
name: String,
mail: Vec<String>,
},
SetDescription {
name: String,
description: Option<String>,
},
SetEntryManagedBy {
name: String,
entry_managed_by: String,
},
Rename {
name: String,
new_name: String,
},
PurgeMembers(Named),
AddMembers(GroupNamedMembers),
RemoveMembers(GroupNamedMembers),
Posix {
commands: GroupPosix,
},
AccountPolicy {
commands: GroupAccountPolicyOpt,
},
}Variants§
List
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.
SetDescription
Set the description of this group. If no description is provided, the value is cleared
SetEntryManagedBy
Set a new entry-managed-by for this group.
Fields
Rename
Rename an existing 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
Manage posix extensions for this group allowing groups to be used on unix/linux systems
Fields
commands: GroupPosixAccountPolicy
Manage the policies that apply to members of this group.
Fields
commands: GroupAccountPolicyOptImplementations§
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>
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>
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
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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