pub struct PairCommand {
pub join: Option<String>,
pub registry: Option<String>,
pub no_qr: bool,
pub timeout: u64,
pub offline: bool,
pub capabilities: Vec<String>,
pub no_mdns: bool,
pub verify: bool,
pub recover: Option<String>,
}Fields§
§join: Option<String>Join an existing pairing session using a short code
registry: Option<String>Registry URL for pairing relay (omit for LAN mode)
no_qr: boolDon’t display QR code (only show short code)
timeout: u64Custom timeout in seconds for the pairing session (default: 300 = 5 minutes)
offline: boolSkip registry server (offline mode, for testing)
capabilities: Vec<String>Capabilities to grant the paired device (comma-separated)
no_mdns: boolDisable mDNS advertisement/discovery in LAN mode
verify: boolPrompt to manually verify the short-authentication-string (SAS) codes match between devices before completing the pair.
Default is off — the QR scan is treated as the authenticated out-of-band channel, matching Signal/WhatsApp UX. Opt in here if you’re pairing over an untrusted network and want a visual SAS compare.
recover: Option<String>Lost/stolen-device recovery: pair a replacement delegated device, then
revoke the old device’s delegation (by did:keri:). The replacement is
authorized before the old one is revoked, so the identity is never left
with zero usable devices. Supported over the relay path (with --registry).
Trait Implementations§
Source§impl Args for PairCommand
impl Args for PairCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for PairCommand
impl Clone for PairCommand
Source§fn clone(&self) -> PairCommand
fn clone(&self) -> PairCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for PairCommand
impl CommandFactory for PairCommand
Source§impl Debug for PairCommand
impl Debug for PairCommand
Source§impl ExecutableCommand for PairCommand
impl ExecutableCommand for PairCommand
Source§impl FromArgMatches for PairCommand
impl FromArgMatches for PairCommand
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.