pub enum ChatCommands {
Show 18 variants
ChannelList {
include_closed: bool,
},
ChannelCreate {
name: String,
visibility: Option<String>,
},
ChannelGet {
id: String,
},
ChannelUpdate {
id: String,
name: Option<String>,
topic: Option<String>,
},
ChannelDelete {
id: String,
},
ChannelFollowers {
id: String,
},
ChannelMembers {
id: String,
},
Dm {
user_ids: Vec<String>,
},
MessageList {
channel: String,
},
MessageSend {
channel: String,
text: String,
type: String,
},
MessageUpdate {
id: String,
text: String,
},
MessageDelete {
id: String,
},
ReactionList {
msg_id: String,
},
ReactionAdd {
msg_id: String,
emoji: String,
},
ReactionRemove {
msg_id: String,
emoji: String,
},
ReplyList {
msg_id: String,
},
ReplySend {
msg_id: String,
text: String,
},
TaggedUsers {
msg_id: String,
},
}Variants§
ChannelList
List channels in the workspace
ChannelCreate
Create a channel
ChannelGet
Get a channel by ID
ChannelUpdate
Update a channel
ChannelDelete
Delete a channel
ChannelFollowers
List followers of a channel
ChannelMembers
List members of a channel
Dm
Create or get a direct message channel
MessageList
List messages in a channel
MessageSend
Send a message to a channel
Fields
MessageUpdate
Update a message
MessageDelete
Delete a message
ReactionList
List reactions on a message
ReactionAdd
Add a reaction to a message
ReactionRemove
Remove a reaction from a message
ReplyList
List replies to a message
ReplySend
Send a reply to a message
TaggedUsers
Get users tagged in a message
Trait Implementations§
Source§impl FromArgMatches for ChatCommands
impl FromArgMatches for ChatCommands
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 ChatCommands
impl Subcommand for ChatCommands
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 ChatCommands
impl RefUnwindSafe for ChatCommands
impl Send for ChatCommands
impl Sync for ChatCommands
impl Unpin for ChatCommands
impl UnsafeUnpin for ChatCommands
impl UnwindSafe for ChatCommands
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