Enum kanidm_cli::PersonOpt
source · pub enum PersonOpt {
Show 13 variants
Credential {
commands: AccountCredential,
},
Radius {
commands: AccountRadius,
},
Posix {
commands: PersonPosix,
},
Session {
commands: AccountUserAuthToken,
},
Ssh {
commands: AccountSsh,
},
List(CommonOpt),
Get(AccountNamedOpt),
Search {
account_id: String,
copt: CommonOpt,
},
Update(PersonUpdateOpt),
Create(AccountCreateOpt),
Delete(AccountNamedOpt),
Validity {
commands: AccountValidity,
},
Certificate {
commands: AccountCertificate,
},
}
Variants§
Credential
Manage the credentials this person uses for authentication
Fields
§
commands: AccountCredential
Radius
Manage radius access for this person
Fields
§
commands: AccountRadius
Posix
Manage posix extensions for this person allowing access to unix/linux systems
Fields
§
commands: PersonPosix
Session
Manage sessions (user auth tokens) associated to this person.
Fields
§
commands: AccountUserAuthToken
Ssh
Manage ssh public key’s associated to this person
Fields
§
commands: AccountSsh
List(CommonOpt)
List all persons
Get(AccountNamedOpt)
View a specific person
Search
Search persons by name
Update(PersonUpdateOpt)
Update a specific person’s attributes
Create(AccountCreateOpt)
Create a new person’s account
Delete(AccountNamedOpt)
Delete a person’s account
Validity
Manage a person’s account validity, such as expiry time (account lock/unlock)
Fields
§
commands: AccountValidity
Certificate
Fields
§
commands: AccountCertificate
Implementations§
Trait Implementations§
source§impl FromArgMatches for PersonOpt
impl FromArgMatches for PersonOpt
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 PersonOpt
impl Subcommand for PersonOpt
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 PersonOpt
impl RefUnwindSafe for PersonOpt
impl Send for PersonOpt
impl Sync for PersonOpt
impl Unpin for PersonOpt
impl UnwindSafe for PersonOpt
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
§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