pub enum TweetsCommands {
Create {
text: String,
client_request_id: Option<String>,
if_exists: String,
},
List {
fields: Option<String>,
limit: Option<usize>,
cursor: Option<String>,
},
Like {
tweet_id: String,
},
Unlike {
tweet_id: String,
},
Retweet {
tweet_id: String,
},
Unretweet {
tweet_id: String,
},
Reply {
tweet_id: String,
text: String,
client_request_id: Option<String>,
if_exists: String,
},
Thread {
texts: Vec<String>,
client_request_id_prefix: Option<String>,
if_exists: String,
},
Show {
tweet_id: String,
},
Conversation {
tweet_id: String,
},
}Variants§
Create
Create a new tweet
Fields
List
List tweets
Fields
Like
Like a tweet
Unlike
Unlike a tweet
Retweet
Retweet a tweet
Unretweet
Undo a retweet
Reply
Reply to a tweet
Fields
Thread
Post a thread of tweets (sequential replies)
Fields
Show
Show a single tweet by ID
Conversation
Retrieve a conversation tree starting from a tweet
Trait Implementations§
Source§impl Debug for TweetsCommands
impl Debug for TweetsCommands
Source§impl FromArgMatches for TweetsCommands
impl FromArgMatches for TweetsCommands
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 TweetsCommands
impl Subcommand for TweetsCommands
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 TweetsCommands
impl RefUnwindSafe for TweetsCommands
impl Send for TweetsCommands
impl Sync for TweetsCommands
impl Unpin for TweetsCommands
impl UnsafeUnpin for TweetsCommands
impl UnwindSafe for TweetsCommands
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