pub enum AppCommands {
Add {
name: String,
client_id: String,
client_secret: String,
redirect_uri: Option<String>,
},
Update {
name: String,
client_id: Option<String>,
client_secret: Option<String>,
redirect_uri: Option<String>,
},
Remove {
name: String,
force: bool,
},
List,
RedirectUri {
command: RedirectUriCommands,
},
}Expand description
App management subcommands.
Variants§
Add
Register a new X API app
Fields
Update
Update credentials for an existing app
Fields
Remove
Remove a registered app
Fields
List
List registered apps
RedirectUri
Inspect or set the stored OAuth2 redirect URI for an app
Fields
§
command: RedirectUriCommandsredirect-uri subcommand to dispatch (get or set).
Trait Implementations§
Source§impl Debug for AppCommands
impl Debug for AppCommands
Source§impl FromArgMatches for AppCommands
impl FromArgMatches for AppCommands
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 AppCommands
impl Subcommand for AppCommands
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 AppCommands
impl RefUnwindSafe for AppCommands
impl Send for AppCommands
impl Sync for AppCommands
impl Unpin for AppCommands
impl UnsafeUnpin for AppCommands
impl UnwindSafe for AppCommands
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