Enum noosphere_cli::native::SphereCommand
source · pub enum SphereCommand {
Create {
owner_key: Option<String>,
path: Option<OsString>,
},
Join {
local_key: Option<String>,
authorization: Option<String>,
id: String,
path: Option<OsString>,
},
}Expand description
Create a new sphere or connect another device to an existing one
Variants
Create
Fields
Initialize a new sphere and assign a key as its owner
Join
Fields
The identity of the authorization that allows the specified key to join the sphere (if already known)
id: StringThe ID (specifically: a DID) of an existing sphere to join
Join an existing sphere by its ID and set up a local working copy
Trait Implementations
sourceimpl Debug for SphereCommand
impl Debug for SphereCommand
sourceimpl FromArgMatches for SphereCommand
impl FromArgMatches for SphereCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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.sourcefn 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.sourceimpl Subcommand for SphereCommand
impl Subcommand for SphereCommand
sourcefn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations
impl RefUnwindSafe for SphereCommand
impl Send for SphereCommand
impl Sync for SphereCommand
impl Unpin for SphereCommand
impl UnwindSafe for SphereCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more