pub struct EmailSetObject {Show 18 fields
pub mailbox_ids: HashMap<String, bool>,
pub keywords: Option<HashMap<String, bool>>,
pub received_at: Option<DateTime<Utc>>,
pub from: Option<Vec<EmailAddress>>,
pub to: Option<Vec<EmailAddress>>,
pub cc: Option<Vec<EmailAddress>>,
pub bcc: Option<Vec<EmailAddress>>,
pub reply_to: Option<Vec<EmailAddress>>,
pub sender: Option<Vec<EmailAddress>>,
pub subject: Option<String>,
pub sent_at: Option<DateTime<Utc>>,
pub in_reply_to: Option<Vec<String>>,
pub references: Option<Vec<String>>,
pub message_id: Option<Vec<String>>,
pub body_values: Option<HashMap<String, EmailBodyValue>>,
pub text_body: Option<Vec<EmailBodyPart>>,
pub html_body: Option<Vec<EmailBodyPart>>,
pub attachments: Option<Vec<EmailBodyPart>>,
}Expand description
Email object for Email/set create (RFC 8621 §5.2)
Fields§
§mailbox_ids: HashMap<String, bool>Mailboxes to file this message into (mailbox ID → true)
keywords: Option<HashMap<String, bool>>Initial keywords/flags
received_at: Option<DateTime<Utc>>Override for the received-at timestamp
from: Option<Vec<EmailAddress>>From header addresses
to: Option<Vec<EmailAddress>>To header addresses
cc: Option<Vec<EmailAddress>>Cc header addresses
bcc: Option<Vec<EmailAddress>>Bcc header addresses
reply_to: Option<Vec<EmailAddress>>Reply-To header addresses
sender: Option<Vec<EmailAddress>>Sender header addresses
subject: Option<String>Subject header
sent_at: Option<DateTime<Utc>>Date sent (encoded into the Date header)
in_reply_to: Option<Vec<String>>In-Reply-To message ID header values
references: Option<Vec<String>>References header values
message_id: Option<Vec<String>>Message-ID header values
body_values: Option<HashMap<String, EmailBodyValue>>Body part values (keyed by part ID)
text_body: Option<Vec<EmailBodyPart>>Ordered text-body part references
html_body: Option<Vec<EmailBodyPart>>Ordered HTML-body part references
attachments: Option<Vec<EmailBodyPart>>Attachments
Trait Implementations§
Source§impl Clone for EmailSetObject
impl Clone for EmailSetObject
Source§fn clone(&self) -> EmailSetObject
fn clone(&self) -> EmailSetObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailSetObject
impl Debug for EmailSetObject
Source§impl<'de> Deserialize<'de> for EmailSetObject
impl<'de> Deserialize<'de> for EmailSetObject
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 EmailSetObject
impl RefUnwindSafe for EmailSetObject
impl Send for EmailSetObject
impl Sync for EmailSetObject
impl Unpin for EmailSetObject
impl UnsafeUnpin for EmailSetObject
impl UnwindSafe for EmailSetObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request