[][src]Enum meli::components::mail::view::AttachmentDisplay

pub enum AttachmentDisplay {
    Alternative {
        inner: Attachment,
        shown_display: usize,
        display: Vec<AttachmentDisplay>,
    },
    InlineText {
        inner: Attachment,
        comment: Option<String>,
        text: String,
    },
    InlineOther {
        inner: Attachment,
    },
    Attachment {
        inner: Attachment,
    },
    SignedPending {
        inner: Attachment,
        display: Vec<AttachmentDisplay>,
        handle: JoinHandle<Result<()>>,
        job_id: JobId,
    },
    SignedFailed {
        inner: Attachment,
        display: Vec<AttachmentDisplay>,
        error: MeliError,
    },
    SignedUnverified {
        inner: Attachment,
        display: Vec<AttachmentDisplay>,
    },
    SignedVerified {
        inner: Attachment,
        display: Vec<AttachmentDisplay>,
        description: String,
    },
    EncryptedPending {
        inner: Attachment,
        handle: JoinHandle<Result<(DecryptionMetadata, Vec<u8>)>>,
    },
    EncryptedFailed {
        inner: Attachment,
        error: MeliError,
    },
    EncryptedSuccess {
        inner: Attachment,
        plaintext: Attachment,
        plaintext_display: Vec<AttachmentDisplay>,
        description: String,
    },
}

Variants

Alternative

Fields of Alternative

inner: Attachmentshown_display: usizedisplay: Vec<AttachmentDisplay>
InlineText

Fields of InlineText

inner: Attachmentcomment: Option<String>text: String
InlineOther

Fields of InlineOther

inner: Attachment
Attachment

Fields of Attachment

inner: Attachment
SignedPending

Fields of SignedPending

inner: Attachmentdisplay: Vec<AttachmentDisplay>handle: JoinHandle<Result<()>>job_id: JobId
SignedFailed

Fields of SignedFailed

inner: Attachmentdisplay: Vec<AttachmentDisplay>error: MeliError
SignedUnverified

Fields of SignedUnverified

inner: Attachmentdisplay: Vec<AttachmentDisplay>
SignedVerified

Fields of SignedVerified

inner: Attachmentdisplay: Vec<AttachmentDisplay>description: String
EncryptedPending

Fields of EncryptedPending

inner: Attachmenthandle: JoinHandle<Result<(DecryptionMetadata, Vec<u8>)>>
EncryptedFailed

Fields of EncryptedFailed

inner: Attachmenterror: MeliError
EncryptedSuccess

Fields of EncryptedSuccess

inner: Attachmentplaintext: Attachmentplaintext_display: Vec<AttachmentDisplay>description: String

Trait Implementations

impl Debug for AttachmentDisplay[src]

Auto Trait Implementations

impl !RefUnwindSafe for AttachmentDisplay

impl Send for AttachmentDisplay

impl Sync for AttachmentDisplay

impl Unpin for AttachmentDisplay

impl !UnwindSafe for AttachmentDisplay

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]