pub enum Action {
Send(SendArgs),
Read(ReadArgs),
Listen(ListenArgs),
Chats(ChatsArgs),
Discover(DiscoverArgs),
Directory(DirectoryArgs),
Permissions(PermissionsArgs),
SelfCmd(SelfArgs),
}Variants§
Send(SendArgs)
Send a message to a chat (private, group, supergroup, or channel).
Read(ReadArgs)
Fetch recent messages the bot has buffered for a chat.
Listen(ListenArgs)
Long-poll the Bot API and stream new messages for a chat to stdout.
Chats(ChatsArgs)
List chats the bot has seen (local directory + recent updates).
Discover(DiscoverArgs)
Poll the Bot API for recent updates and upsert chat aliases
into this project’s directory.toml.
Directory(DirectoryArgs)
Inspect or hand-edit the name -> chat_id directory.
Permissions(PermissionsArgs)
Inspect, scaffold, or dry-run the permissions policy that narrows what this service may actually do.
SelfCmd(SelfArgs)
Manage the private-chat ID resolved from the literal @me in
send/read targets. Capture (by polling for your first message
to the bot), show, set, or clear.
Trait Implementations§
Source§impl FromArgMatches for Action
impl FromArgMatches for Action
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 Action
impl Subcommand for Action
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 Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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