pub enum GistCommand {
List {
public: bool,
secret: bool,
user: Option<String>,
limit: u32,
json: Option<Vec<String>>,
hostname: Option<String>,
},
Create {
files: Vec<String>,
desc: Option<String>,
public: bool,
filename: Option<String>,
web: bool,
hostname: Option<String>,
},
View {
gist_id: String,
raw: bool,
filename: Option<String>,
web: bool,
json: Option<Vec<String>>,
hostname: Option<String>,
},
Edit {
gist_id: String,
desc: Option<String>,
add: Vec<String>,
filename: Option<String>,
hostname: Option<String>,
},
Delete {
gist_id: String,
hostname: Option<String>,
},
}Expand description
Subcommands for gor gist.
Variants§
List
List gists.
Fields
Create
Create a gist.
Fields
View
View a gist’s content and metadata.
Fields
Edit
Edit a gist.
Fields
Delete
Delete a gist.
Trait Implementations§
Source§impl Debug for GistCommand
impl Debug for GistCommand
Source§impl FromArgMatches for GistCommand
impl FromArgMatches for GistCommand
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 GistCommand
impl Subcommand for GistCommand
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 GistCommand
impl RefUnwindSafe for GistCommand
impl Send for GistCommand
impl Sync for GistCommand
impl Unpin for GistCommand
impl UnsafeUnpin for GistCommand
impl UnwindSafe for GistCommand
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