pub enum OrgCommand {
Bind {
domain: String,
mode: String,
json: bool,
},
List {
json: bool,
},
Forget {
org_did: String,
json: bool,
},
}Expand description
wire org … — trust organizations by their domain (RFC-001 §2 DNS-TXT
floor). Binding resolves _wire-org.<domain> to an org_did and records a
per-org inbound policy; a peer with a verified member_cert for a bound org
then reaches ORG_VERIFIED under the chosen mode.
Variants§
Bind
Resolve _wire-org.<domain> (DNS-TXT, over DoH) and trust the org it
binds. The org’s identity is now rooted in a domain it demonstrably
controls — not a bare keypair.
Fields
List
List the organizations currently trusted (org_did + inbound mode).
Forget
Stop trusting an organization (remove its per-org policy by org_did).
Trait Implementations§
Source§impl Debug for OrgCommand
impl Debug for OrgCommand
Source§impl FromArgMatches for OrgCommand
impl FromArgMatches for OrgCommand
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 OrgCommand
impl Subcommand for OrgCommand
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 OrgCommand
impl RefUnwindSafe for OrgCommand
impl Send for OrgCommand
impl Sync for OrgCommand
impl Unpin for OrgCommand
impl UnsafeUnpin for OrgCommand
impl UnwindSafe for OrgCommand
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