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

owner_key: Option<String>

The pet name of a key to assign as the owner of the sphere

path: Option<OsString>

An optional path to a directory where the sphere should be initialized; by default, the current working directory will be used

Initialize a new sphere and assign a key as its owner

Join

Fields

local_key: Option<String>

The pet name of a key to use when requesting access to the sphere

authorization: Option<String>

The identity of the authorization that allows the specified key to join the sphere (if already known)

id: String

The ID (specifically: a DID) of an existing sphere to join

path: Option<OsString>

An optional path to a directory where the sphere should be initialized; by default, the current working directory will be used

Join an existing sphere by its ID and set up a local working copy

Trait Implementations

Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Scrape the references from an impl Read. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more