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
ListEnvelopesByIds
GetEnvelope
GetBody
DownloadAttachment
OpenAttachment
ListBodies
GetThread
ListLabels
CreateLabel
DeleteLabel
RenameLabel
ListRules
ListAccounts
ListAccountsConfig
AuthorizeAccountConfig
UpsertAccountConfig
Fields
§
account: AccountConfigDataSetDefaultAccount
TestAccountConfig
Fields
§
account: AccountConfigDataGetRule
GetRuleForm
UpsertRule
UpsertRuleForm
Fields
DeleteRule
DryRunRules
ListEvents
GetLogs
GetDoctorReport
GenerateBugReport
ListRuleHistory
Search
SyncNow
GetSyncStatus
SetFlags
Count
GetHeaders
ListSavedSearches
ListSubscriptions
GetSemanticStatus
EnableSemantic
InstallSemanticProfile
Fields
§
profile: SemanticProfileUseSemanticProfile
Fields
§
profile: SemanticProfileReindexSemantic
CreateSavedSearch
DeleteSavedSearch
RunSavedSearch
Mutation(MutationCommand)
Unsubscribe
Snooze
Unsnooze
ListSnoozed
PrepareReply
PrepareForward
SendDraft
SaveDraftToServer
Save draft to the mail server (e.g. Gmail Drafts folder).
ListDrafts
ExportThread
ExportSearch
GetStatus
Ping
Shutdown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more