Enum noosphere_cli::native::AuthCommand
source · pub enum AuthCommand {
Add {
did: String,
name: Option<String>,
},
List {
as_json: bool,
},
Revoke {
name: String,
},
Rotate {},
}Expand description
Manage access to a sphere by holders of other keys
Variants
Add
Fields
did: StringThe DID of the key to authorize
Authorize a key to work on the sphere in the current directory
List
Fields
as_json: boolOutput the list of authorized keys as formatted JSON
Print the name and DID for all keys that the owner has authorized to work on this sphere
Revoke
Fields
name: StringThe name of a key to revoke authorization for
Revoke authorization to work on the sphere from a specified key
Rotate
Fields
Rotate key authority from one key to another
Trait Implementations
sourceimpl Debug for AuthCommand
impl Debug for AuthCommand
sourceimpl FromArgMatches for AuthCommand
impl FromArgMatches for AuthCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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.sourcefn 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.sourceimpl Subcommand for AuthCommand
impl Subcommand for AuthCommand
sourcefn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more