Enum noosphere_cli::cli::AuthCommand
source · pub enum AuthCommand {
Add {
did: Did,
name: Option<String>,
},
List {
as_json: bool,
tree: bool,
},
Revoke {
name: String,
},
Rotate {},
}Expand description
Manage the devices/keys that are allowed to access this sphere
Variants§
Add
Fields
Authorize a key to work on the sphere in the current directory
List
Fields
Print the name and DID for all keys that the owner has authorized to work on this sphere
Revoke
Revoke authorization to work on the sphere from a specified key
Rotate
Fields
Rotate key authority from one key to another
Trait Implementations§
source§impl Debug for AuthCommand
impl Debug for AuthCommand
source§impl FromArgMatches for AuthCommand
impl FromArgMatches for AuthCommand
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 AuthCommand
impl Subcommand for AuthCommand
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 AuthCommand
impl Send for AuthCommand
impl Sync for AuthCommand
impl Unpin for AuthCommand
impl UnwindSafe for AuthCommand
Blanket Implementations§
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