[][src]Struct meli::components::mail::compose::Composer

pub struct Composer {
    reply_context: Option<(MailboxHash, EnvelopeHash)>,
    account_hash: AccountHash,
    cursor: Cursor,
    pager: Pager,
    draft: Draft,
    form: FormWidget<bool>,
    mode: ViewMode,
    embed_area: Area,
    embed: Option<EmbedStatus>,
    gpg_state: GpgComposeState,
    dirty: bool,
    has_changes: bool,
    initialized: bool,
    id: ComponentId,
}

Fields

reply_context: Option<(MailboxHash, EnvelopeHash)>account_hash: AccountHashcursor: Cursorpager: Pagerdraft: Draftform: FormWidget<bool>mode: ViewModeembed_area: Areaembed: Option<EmbedStatus>gpg_state: GpgComposeStatedirty: boolhas_changes: boolinitialized: boolid: ComponentId

Implementations

impl Composer[src]

const DESCRIPTION: &'static str[src]

pub fn new(context: &Context) -> Self[src]

pub fn with_account(account_hash: AccountHash, context: &Context) -> Self[src]

pub fn edit(
    account_hash: AccountHash,
    env_hash: EnvelopeHash,
    bytes: &[u8],
    context: &Context
) -> Result<Self>
[src]

pub fn reply_to(
    coordinates: (AccountHash, MailboxHash, EnvelopeHash),
    reply_body: String,
    context: &mut Context,
    reply_to_all: bool
) -> Self
[src]

pub fn reply_to_select(
    coordinates: (AccountHash, MailboxHash, EnvelopeHash),
    reply_body: String,
    context: &mut Context
) -> Self
[src]

pub fn reply_to_author(
    coordinates: (AccountHash, MailboxHash, EnvelopeHash),
    reply_body: String,
    context: &mut Context
) -> Self
[src]

pub fn reply_to_all(
    coordinates: (AccountHash, MailboxHash, EnvelopeHash),
    reply_body: String,
    context: &mut Context
) -> Self
[src]

pub fn set_draft(&mut self, draft: Draft)[src]

fn update_draft(&mut self)[src]

fn update_form(&mut self)[src]

fn draw_attachments(&self, grid: &mut CellBuffer, area: Area, context: &Context)[src]

Trait Implementations

impl Component for Composer[src]

impl Debug for Composer[src]

impl Display for Composer[src]

Auto Trait Implementations

impl !RefUnwindSafe for Composer

impl Send for Composer

impl Sync for Composer

impl Unpin for Composer

impl !UnwindSafe for Composer

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> ToString for T where
    T: Display + ?Sized
[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]