Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 61 variants ListEnvelopes { label_id: Option<LabelId>, account_id: Option<AccountId>, limit: u32, offset: u32, }, ListEnvelopesByIds { message_ids: Vec<MessageId>, }, GetEnvelope { message_id: MessageId, }, GetBody { message_id: MessageId, }, DownloadAttachment { message_id: MessageId, attachment_id: AttachmentId, }, OpenAttachment { message_id: MessageId, attachment_id: AttachmentId, }, ListBodies { message_ids: Vec<MessageId>, }, GetThread { thread_id: ThreadId, }, ListLabels { account_id: Option<AccountId>, }, CreateLabel { name: String, color: Option<String>, account_id: Option<AccountId>, }, DeleteLabel { name: String, account_id: Option<AccountId>, }, RenameLabel { old: String, new: String, account_id: Option<AccountId>, }, ListRules, ListAccounts, ListAccountsConfig, AuthorizeAccountConfig { account: AccountConfigData, reauthorize: bool, }, UpsertAccountConfig { account: AccountConfigData, }, SetDefaultAccount { key: String, }, TestAccountConfig { account: AccountConfigData, }, GetRule { rule: String, }, GetRuleForm { rule: String, }, UpsertRule { rule: Value, }, UpsertRuleForm { existing_rule: Option<String>, name: String, condition: String, action: String, priority: i32, enabled: bool, }, DeleteRule { rule: String, }, DryRunRules { rule: Option<String>, all: bool, after: Option<String>, }, ListEvents { limit: u32, level: Option<String>, category: Option<String>, }, GetLogs { limit: u32, level: Option<String>, }, GetDoctorReport, GenerateBugReport { verbose: bool, full_logs: bool, since: Option<String>, }, ListRuleHistory { rule: Option<String>, limit: u32, }, Search { query: String, limit: u32, mode: Option<SearchMode>, explain: bool, }, SyncNow { account_id: Option<AccountId>, }, GetSyncStatus { account_id: AccountId, }, SetFlags { message_id: MessageId, flags: MessageFlags, }, Count { query: String, mode: Option<SearchMode>, }, GetHeaders { message_id: MessageId, }, ListSavedSearches, ListSubscriptions { limit: u32, }, GetSemanticStatus, EnableSemantic { enabled: bool, }, InstallSemanticProfile { profile: SemanticProfile, }, UseSemanticProfile { profile: SemanticProfile, }, ReindexSemantic, CreateSavedSearch { name: String, query: String, search_mode: SearchMode, }, DeleteSavedSearch { name: String, }, RunSavedSearch { name: String, limit: u32, }, Mutation(MutationCommand), Unsubscribe { message_id: MessageId, }, Snooze { message_id: MessageId, wake_at: DateTime<Utc>, }, Unsnooze { message_id: MessageId, }, ListSnoozed, PrepareReply { message_id: MessageId, reply_all: bool, }, PrepareForward { message_id: MessageId, }, SendDraft { draft: Draft, }, SaveDraftToServer { draft: Draft, }, ListDrafts, ExportThread { thread_id: ThreadId, format: ExportFormat, }, ExportSearch { query: String, format: ExportFormat, }, GetStatus, Ping, Shutdown,
}

Variants§

§

ListEnvelopes

Fields

§label_id: Option<LabelId>
§account_id: Option<AccountId>
§limit: u32
§offset: u32
§

ListEnvelopesByIds

Fields

§message_ids: Vec<MessageId>
§

GetEnvelope

Fields

§message_id: MessageId
§

GetBody

Fields

§message_id: MessageId
§

DownloadAttachment

Fields

§message_id: MessageId
§attachment_id: AttachmentId
§

OpenAttachment

Fields

§message_id: MessageId
§attachment_id: AttachmentId
§

ListBodies

Fields

§message_ids: Vec<MessageId>
§

GetThread

Fields

§thread_id: ThreadId
§

ListLabels

Fields

§account_id: Option<AccountId>
§

CreateLabel

Fields

§name: String
§account_id: Option<AccountId>
§

DeleteLabel

Fields

§name: String
§account_id: Option<AccountId>
§

RenameLabel

Fields

§account_id: Option<AccountId>
§

ListRules

§

ListAccounts

§

ListAccountsConfig

§

AuthorizeAccountConfig

Fields

§reauthorize: bool
§

UpsertAccountConfig

Fields

§

SetDefaultAccount

Fields

§

TestAccountConfig

Fields

§

GetRule

Fields

§rule: String
§

GetRuleForm

Fields

§rule: String
§

UpsertRule

Fields

§rule: Value
§

UpsertRuleForm

Fields

§existing_rule: Option<String>
§name: String
§condition: String
§action: String
§priority: i32
§enabled: bool
§

DeleteRule

Fields

§rule: String
§

DryRunRules

Fields

§all: bool
§

ListEvents

Fields

§limit: u32
§category: Option<String>
§

GetLogs

Fields

§limit: u32
§

GetDoctorReport

§

GenerateBugReport

Fields

§verbose: bool
§full_logs: bool
§

ListRuleHistory

Fields

§limit: u32
§

Search

Fields

§query: String
§limit: u32
§explain: bool
§

SyncNow

Fields

§account_id: Option<AccountId>
§

GetSyncStatus

Fields

§account_id: AccountId
§

SetFlags

Fields

§message_id: MessageId
§

Count

Fields

§query: String
§

GetHeaders

Fields

§message_id: MessageId
§

ListSavedSearches

§

ListSubscriptions

Fields

§limit: u32
§

GetSemanticStatus

§

EnableSemantic

Fields

§enabled: bool
§

InstallSemanticProfile

Fields

§

UseSemanticProfile

Fields

§

ReindexSemantic

§

CreateSavedSearch

Fields

§name: String
§query: String
§search_mode: SearchMode
§

DeleteSavedSearch

Fields

§name: String
§

RunSavedSearch

Fields

§name: String
§limit: u32
§

Mutation(MutationCommand)

§

Unsubscribe

Fields

§message_id: MessageId
§

Snooze

Fields

§message_id: MessageId
§wake_at: DateTime<Utc>
§

Unsnooze

Fields

§message_id: MessageId
§

ListSnoozed

§

PrepareReply

Fields

§message_id: MessageId
§reply_all: bool
§

PrepareForward

Fields

§message_id: MessageId
§

SendDraft

Fields

§draft: Draft
§

SaveDraftToServer

Save draft to the mail server (e.g. Gmail Drafts folder).

Fields

§draft: Draft
§

ListDrafts

§

ExportThread

Fields

§thread_id: ThreadId
§

ExportSearch

Fields

§query: String
§

GetStatus

§

Ping

§

Shutdown

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

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

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

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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 = 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,