Skip to main content

Commands

Enum Commands 

Source
pub(crate) enum Commands {
    Init {
        name: String,
        passcode: Option<String>,
        nopasscode: bool,
        salt: Option<String>,
        config_dir: String,
        config_file: Option<String>,
    },
    Passcode {
        command: PasscodeCommands,
    },
    Incept {
Show 17 fields name: String, alias: String, passcode: Option<String>, nopasscode: bool, file: Option<String>, transferable: Option<bool>, wits: Vec<String>, toad: Option<u32>, icount: Option<String>, isith: Option<String>, ncount: Option<String>, nsith: Option<String>, est_only: bool, data: Option<String>, delpre: Option<String>, proxy: Option<String>, timeout: u64,
}, Status { name: String, alias: String, }, Rotate {
Show 13 fields name: String, alias: String, passcode: Option<String>, nopasscode: bool, isith: Option<String>, nsith: Option<String>, ncount: Option<String>, toad: Option<u32>, cuts: Vec<String>, adds: Vec<String>, data: Option<String>, proxy: Option<String>, timeout: u64,
}, Oobi { command: OobiCommands, }, Multisig { command: MultisigCommands, }, Delegate { command: DelegateCommands, }, }

Variants§

§

Init

Initialize a keystore and database environment

Fields

§name: String

Name of the keystore

§passcode: Option<String>

Optional passcode for the keystore

§nopasscode: bool

Use no passcode (alternative to –passcode)

§salt: Option<String>

Salt for key derivation (hex string)

§config_dir: String

Configuration directory path

§config_file: Option<String>

Configuration file name

§

Passcode

Passcode management commands

Fields

§

Incept

Incept a new KERI identifier

Fields

§name: String

Name of the keystore to use

§alias: String

Alias for the identifier

§passcode: Option<String>

Optional passcode for the keystore

§nopasscode: bool

Use no passcode

§file: Option<String>

Configuration file for inception parameters

§transferable: Option<bool>

Whether the prefix is transferable

§wits: Vec<String>

Witnesses (can be specified multiple times)

§toad: Option<u32>

Witness threshold (threshold of acceptable duplicity)

§icount: Option<String>

Incepting key count

§isith: Option<String>

Signing threshold for inception event

§ncount: Option<String>

Next key count

§nsith: Option<String>

Signing threshold for next rotation

§est_only: bool

Only allow establishment events

§data: Option<String>

Anchor data: JSON seal or list of seals, or @file (as kli –data)

§delpre: Option<String>

Delegator prefix: incept a delegated identifier (dip)

§proxy: Option<String>

Local identifier that sends the delegated inception to the delegator (as kli –proxy)

§timeout: u64

Seconds to wait for the delegator’s approval

§

Status

Display status of a KERI identifier

Fields

§name: String

Name of the keystore

§alias: String

Alias of the identifier

§

Rotate

Rotate keys for an existing identifier

Fields

§name: String

Name of the keystore to use

§alias: String

Alias of the identifier to rotate

§passcode: Option<String>

Optional passcode for the keystore

§nopasscode: bool

Use no passcode

§isith: Option<String>

Signing threshold for rotation event

§nsith: Option<String>

Signing threshold for next rotation

§ncount: Option<String>

Next key count

§toad: Option<u32>

Witness threshold (threshold of acceptable duplicity)

§cuts: Vec<String>

Witnesses to remove (can be specified multiple times)

§adds: Vec<String>

Witnesses to add (can be specified multiple times)

§data: Option<String>

Anchor data: JSON seal or list of seals, or @file (as kli –data)

§proxy: Option<String>

Local identifier that sends a delegated rotation to the delegator (default: the identifier itself)

§timeout: u64

Seconds to wait for the delegator’s approval of a delegated rotation

§

Oobi

Out-of-band introductions

Fields

§

Multisig

Group (multisig) identifiers

Fields

§

Delegate

Delegation, delegator side

Fields

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more