Skip to main content

ArchiveMessageCommand

Enum ArchiveMessageCommand 

Source
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

§archive_ref: String

Direct-message archive category ref: aYYYYMMDDNNN or aYYYYMMDDNNN-any-suffix.

§message_id: String

Message id to file.

§summary: String

Human/agent-authored summary for this archive entry.

§reason: Option<String>

Why this disposition is correct; required by default.

§

Show

Show archive category index and entries.

Fields

§archive_ref: String

Direct-message archive category ref: aYYYYMMDDNNN or aYYYYMMDDNNN-any-suffix.

§

Restore

Restore a direct archived message to triage.

Fields

§archive_ref: String

Direct-message archive category ref: aYYYYMMDDNNN or aYYYYMMDDNNN-any-suffix.

§message_id: String
§reason: Option<String>

Why this message needs active triage again; required by default.

§

Move

Move a direct archived message to another archive category.

Fields

§archive_ref: String

Source direct-message archive category ref.

§message_id: String
§new_archive_ref: String

Destination archive category ref.

§reason: Option<String>

Why this category is better; required by default.

§

Rename

Rename this archive category’s human-readable name without changing its UID.

Fields

§archive_ref: String

Direct-message archive category ref: aYYYYMMDDNNN or aYYYYMMDDNNN-any-suffix.

§name: String

New human-readable archive name.

§reason: Option<String>

Why this name better represents the category; required by default.

§

SetSummary

Set or replace one direct archive entry summary.

Fields

§archive_ref: String

Direct-message archive category ref: aYYYYMMDDNNN or aYYYYMMDDNNN-any-suffix.

§message_id: String
§summary: String
§reason: Option<String>

Why this summary is useful; required by default.

§

Notes

Show or edit archive category notes.

Trait Implementations§

Source§

impl Debug for ArchiveMessageCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for ArchiveMessageCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for ArchiveMessageCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V