pub enum CredentialSubcommand {
Issue {
issuer: String,
to: String,
cap: Vec<String>,
role: Option<String>,
expires_in: Option<i64>,
},
Revoke {
credential_said: String,
issuer: String,
},
List {
issuer: Option<String>,
include_revoked: bool,
},
Verify {
credential_said: String,
issuer: String,
require_witnesses: bool,
},
Present {
subject: String,
said: String,
audience: String,
nonce: String,
},
}Expand description
Credential subcommands.
Variants§
Issue
Issue a capability credential to an issuee (its KEL must already exist).
Fields
Revoke
Revoke a credential (anchors a rev in the issuer’s KEL). Idempotent.
Fields
List
List the issuer’s live credentials (issued − revoked).
Fields
Verify
Verify a credential, resolving the issuer KEL/TEL + witness receipts.
Fields
Present
Present a credential: prove control of the subject AID and emit an Auths-Presentation header.
Trait Implementations§
Source§impl Clone for CredentialSubcommand
impl Clone for CredentialSubcommand
Source§fn clone(&self) -> CredentialSubcommand
fn clone(&self) -> CredentialSubcommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CredentialSubcommand
impl Debug for CredentialSubcommand
Source§impl FromArgMatches for CredentialSubcommand
impl FromArgMatches for CredentialSubcommand
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 CredentialSubcommand
impl Subcommand for CredentialSubcommand
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 CredentialSubcommand
impl RefUnwindSafe for CredentialSubcommand
impl Send for CredentialSubcommand
impl Sync for CredentialSubcommand
impl Unpin for CredentialSubcommand
impl UnsafeUnpin for CredentialSubcommand
impl UnwindSafe for CredentialSubcommand
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