Skip to main content

AskKind

Enum AskKind 

Source
pub enum AskKind {
Show 36 variants Limit, MarkMessage { msg_id: String, }, ListAction { actions: Vec<(&'static str, Option<String>)>, }, Search { back: bool, }, Pattern { op: PatternOp, }, CopyTo { delete: bool, tagged: bool, decode: bool, }, Pipe { tagged: bool, }, PrintConfirm { tagged: bool, default_yes: bool, }, BounceTo { tagged: bool, }, BounceConfirm { to: String, tagged: bool, }, Purge { quit: bool, }, Sort, AliasNick { addr: String, }, EditLabel { tagged: bool, }, ReplyTo, ComposeTo, ComposeCc, ComposeBcc, ComposeSubject, NoSubject { default_yes: bool, }, IncludeReply { default_yes: bool, }, ForwardAttach, NoAttach, EditHeader { name: String, }, EditFcc, AttachFile, AttachField { k: usize, is_type: bool, }, RenameAttachment { k: usize, }, NewMimeFile, NewMimeType { path: String, }, WriteFcc, Security, PostponeAsk { default_yes: bool, }, Shell, QuitConfirm, AppendConfirm { input: String, delete: bool, tagged: bool, decode: bool, },
}
Expand description

Which question is being answered, and everything the operation was holding when it stopped to ask. The front end carries it back untouched, so nothing about a half-done operation lives in the front end.

Variants§

§

Limit

mutt’s limit: show only the messages matching a pattern.

§

MarkMessage

mutt’s mark-message: the stroke that will jump to this Message-ID.

Fields

§msg_id: String
§

ListAction

mutt’s list-action: which RFC 2369 action, out of what the message offers (None where it offers nothing).

Fields

§actions: Vec<(&'static str, Option<String>)>
§

Search

An index search; back is mutt’s search-reverse.

Fields

§back: bool
§

Pattern

A mark applied to every message matching a pattern.

Fields

§

CopyTo

Where to copy the messages, and whether the originals are marked deleted afterwards (mutt’s save).

Fields

§delete: bool
§tagged: bool
§decode: bool

mutt’s decode-save / decode-copy: deliver the decoded message rather than the raw bytes.

§

Pipe

Fields

§tagged: bool
§

PrintConfirm

mutt’s $print: print this message? default_yes is what Enter takes, from ask-yes or ask-no (rmut’s default, as in mutt).

Fields

§tagged: bool
§default_yes: bool
§

BounceTo

Fields

§tagged: bool
§

BounceConfirm

Fields

§tagged: bool
§

Purge

Purge the deleted messages? quit leaves afterwards.

Fields

§quit: bool
§

Sort

mutt’s sort menu: one key picks the order.

§

AliasNick

The nick for a create-alias; the address came from the message.

Fields

§addr: String
§

EditLabel

mutt’s edit-label: the X-Label for the message or the tagged set. Empty clears it.

Fields

§tagged: bool
§

ReplyTo

mutt’s $reply_to (ask-yes): reply to the Reply-To address?

§

ComposeTo

Who the draft goes to.

§

ComposeCc

mutt’s $askcc / $askbcc: who else gets a copy.

§

ComposeBcc

§

ComposeSubject

What it is about.

§

NoSubject

mutt’s $abort_nosubject: no subject, abort? default_yes is what Enter takes, from ask-yes (mutt’s default) or ask-no.

Fields

§default_yes: bool
§

IncludeReply

mutt’s $include: quote the original in the reply? default_yes is what Enter takes, from ask-yes or ask-no.

Fields

§default_yes: bool
§

ForwardAttach

mime_forward = “ask”: forward the original as an attachment?

§

NoAttach

$abort_noattach = ask: the body mentions an attachment and none is attached. Send it anyway?

§

EditHeader

A header of the draft in hand, edited from the compose menu.

Fields

§name: String
§

EditFcc

Where the sent copy goes (empty keeps none).

§

AttachFile

A file to attach.

§

AttachField

The description or the content-type of the k-th attachment.

Fields

§is_type: bool
§

RenameAttachment

mutt’s rename-attachment: the name the k-th file goes out as.

Fields

§

NewMimeFile

mutt’s new-mime, first half: the file to make.

§

NewMimeType

mutt’s new-mime, second half: its Content-Type.

Fields

§path: String
§

WriteFcc

mutt’s write-fcc: the mailbox the message is written to, as it stands, without sending.

§

Security

mutt’s compose menu p: sign, encrypt, both, or neither.

§

PostponeAsk

Leaving the compose menu: postpone the draft, or throw it away?

Fields

§default_yes: bool
§

Shell

mutt’s !: a shell command to run with the display stood down.

§

QuitConfirm

mutt’s $quit: leave the mailbox and the program?

§

AppendConfirm

mutt’s $confirmappend: the target mailbox exists; add to it?

Fields

§input: String
§delete: bool
§tagged: bool
§decode: bool

Trait Implementations§

Source§

impl Clone for AskKind

Source§

fn clone(&self) -> AskKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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.