Enum omg_api::Commands

source ·
pub enum Commands {
Show 15 variants Account { email: String, command: Account, }, Address { address: Option<String>, command: Address, }, Auth { api_key: String, }, Directory, Dns { address: Option<String>, command: Dns, }, Email { address: Option<String>, command: Email, }, Now { address: Option<String>, command: Now, }, Pastebin { address: Option<String>, command: Pastebin, }, Preferences { owner: String, item: String, value: String, }, Purl { address: Option<String>, command: Purl, }, Service, Status { address: Option<String>, command: Status, }, Theme { address: Option<String>, command: Theme, }, Web { address: Option<String>, command: Web, }, Weblog { address: Option<String>, command: Weblog, },
}

Variants§

§

Account

Fields

§email: String

Email of your omg.lol account, needed for Account commands only

§command: Account

Get information and make changes to your account

§

Address

Fields

§address: Option<String>

omg.lol address to interact with

§command: Address

Get information and make changes to your addresses

§

Auth

Fields

§api_key: String

API key to save to config.json

Save your omg.lol API key to the config.json (Rather than using the OMGLOL_API_KEY environment variable)

§

Directory

Get the address directory, consisting of addresses that have opted-in to be listed

§

Dns

Fields

§address: Option<String>

omg.lol address to interact with

§command: Dns

Adjust the switchboard / DNS records for your omg.lol address

§

Email

Fields

§address: Option<String>

omg.lol address to interact with

§command: Email

Manage the email configuration for an omg.lol address

§

Now

Fields

§address: Option<String>

omg.lol address to interact with

§command: Now

Manage your /now page

§

Pastebin

Fields

§address: Option<String>

omg.lol address to interact with

§command: Pastebin

Manage the pastebin for an omg.lol address

§

Preferences

Fields

§owner: String

Account to change settings for

§item: String

ID of setting to update

§value: String

Value to set “item” to

Manage preferences for omg.lol accounts, addresses and objects

§

Purl

Fields

§address: Option<String>

omg.lol address to interact with

§command: Purl

Manage PURLs (Persistent URLs) for your omg.lol address

§

Service

Get service information about omg.lol

§

Status

Fields

§address: Option<String>

omg.lol address to interact with

§command: Status

Manage the statuslog for an omg.lol address

§

Theme

Fields

§address: Option<String>

omg.lol address to interact with

§command: Theme

Manage omg.lol profile themes

§

Web

Fields

§address: Option<String>

omg.lol address to interact with

§command: Web

Manage profile page and web stuff for an omg.lol address

§

Weblog

Fields

§address: Option<String>

omg.lol address to interact with

§command: Weblog

Manage the weblog for an omg.lol address

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. Read more
source§

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

Append to [Command] so it can update self. 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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.

source§

impl<T, U> Into<U> for Twhere 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.

source§

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

§

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 Twhere U: TryFrom<T>,

§

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.