pub enum DeviceSubcommand {
List {
include_revoked: bool,
},
Link {
identity_key_alias: String,
device_key_alias: String,
device_did: String,
payload: Option<PathBuf>,
schema: Option<PathBuf>,
expires_in_days: Option<i64>,
note: Option<String>,
capabilities: Option<Vec<String>>,
},
Revoke {
device_did: String,
identity_key_alias: String,
note: Option<String>,
},
Resolve {
device_did: String,
},
Pair(PairCommand),
VerifyAttestation(VerifyCommand),
Extend {
device_did: String,
days: i64,
identity_key_alias: String,
device_key_alias: String,
},
}Variants§
List
List all authorized devices for the current identity.
Link
Authorize a new device to act on behalf of the identity.
Fields
Revoke
Revoke an existing device authorization using the identity key.
Resolve
Resolve a device DID to its controller identity DID.
Pair(PairCommand)
Link devices to your identity via QR code or short code.
VerifyAttestation(VerifyCommand)
Verify device authorization signatures (attestation).
Extend
Extend the expiration date of an existing device authorization.
Trait Implementations§
Source§impl Clone for DeviceSubcommand
impl Clone for DeviceSubcommand
Source§fn clone(&self) -> DeviceSubcommand
fn clone(&self) -> DeviceSubcommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceSubcommand
impl Debug for DeviceSubcommand
Source§impl FromArgMatches for DeviceSubcommand
impl FromArgMatches for DeviceSubcommand
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 DeviceSubcommand
impl Subcommand for DeviceSubcommand
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 DeviceSubcommand
impl RefUnwindSafe for DeviceSubcommand
impl Send for DeviceSubcommand
impl Sync for DeviceSubcommand
impl Unpin for DeviceSubcommand
impl UnsafeUnpin for DeviceSubcommand
impl UnwindSafe for DeviceSubcommand
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