pub enum MessageCommands {
Send {
room_id: String,
message: String,
signing_key: Option<String>,
},
List {
room_id: String,
limit: usize,
since_minutes: Option<u64>,
},
Stream {
room_id: String,
poll_interval: u64,
timeout: u64,
max_messages: usize,
initial_messages: usize,
subscribe: bool,
},
Edit {
room_id: String,
message_id: String,
new_content: String,
},
Delete {
room_id: String,
message_id: String,
},
React {
room_id: String,
message_id: String,
emoji: String,
},
Unreact {
room_id: String,
message_id: String,
emoji: String,
},
Reply {
room_id: String,
message_id: String,
message: String,
},
}Variants§
Send
Send a message to a room
Fields
List
List recent messages in a room
Fields
Stream
Stream messages from a room in real-time
Fields
Edit
Edit a message you sent
Fields
Delete
Delete a message you sent
Fields
React
Add a reaction to a message
Fields
Unreact
Remove a reaction from a message
Fields
Reply
Reply to a message
Trait Implementations§
Source§impl FromArgMatches for MessageCommands
impl FromArgMatches for MessageCommands
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 MessageCommands
impl Subcommand for MessageCommands
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 MessageCommands
impl RefUnwindSafe for MessageCommands
impl Send for MessageCommands
impl Sync for MessageCommands
impl Unpin for MessageCommands
impl UnsafeUnpin for MessageCommands
impl UnwindSafe for MessageCommands
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