pub enum ArchiveMessageCommand {
Create(ArchiveMessageCreateArgs),
Add {
archive_ref: String,
message_id: String,
summary: String,
reason: Option<String>,
},
Show {
archive_ref: String,
},
Restore {
archive_ref: String,
message_id: String,
reason: Option<String>,
},
Move {
archive_ref: String,
message_id: String,
new_archive_ref: String,
reason: Option<String>,
},
Rename {
archive_ref: String,
name: String,
reason: Option<String>,
},
SetSummary {
archive_ref: String,
message_id: String,
summary: String,
reason: Option<String>,
},
Notes {
action: ArchiveMessageNotesAction,
},
}Variants§
Create(ArchiveMessageCreateArgs)
Create a direct-message archive category and optionally file one message.
Add
File an existing message into this direct-message archive category.
Fields
Show
Show archive category index and entries.
Fields
Restore
Restore a direct archived message to triage.
Fields
Move
Move a direct archived message to another archive category.
Fields
Rename
Rename this archive category’s human-readable name without changing its UID.
Fields
SetSummary
Set or replace one direct archive entry summary.
Fields
Notes
Show or edit archive category notes.
Fields
§
action: ArchiveMessageNotesActionTrait Implementations§
Source§impl Debug for ArchiveMessageCommand
impl Debug for ArchiveMessageCommand
Source§impl FromArgMatches for ArchiveMessageCommand
impl FromArgMatches for ArchiveMessageCommand
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 ArchiveMessageCommand
impl Subcommand for ArchiveMessageCommand
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 ArchiveMessageCommand
impl RefUnwindSafe for ArchiveMessageCommand
impl Send for ArchiveMessageCommand
impl Sync for ArchiveMessageCommand
impl Unpin for ArchiveMessageCommand
impl UnsafeUnpin for ArchiveMessageCommand
impl UnwindSafe for ArchiveMessageCommand
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