#[non_exhaustive]pub struct EmailParseResponse {
pub account_id: Id,
pub parsed: Option<HashMap<Id, Email>>,
pub not_parsable: Option<Vec<Id>>,
pub not_found: Option<Vec<Id>>,
pub extra: Map<String, Value>,
}Expand description
Response to Email/parse (RFC 8621 §4.9).
Per RFC 8621 §4.9, parsed Email objects have id, mailboxIds,
keywords, and receivedAt set to null; callers should not rely on
those fields being populated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: IdThe account this response refers to.
parsed: Option<HashMap<Id, Email>>Parsed Emails keyed by source blob id.
not_parsable: Option<Vec<Id>>Blob ids whose contents were not parseable as RFC 5322 messages.
not_found: Option<Vec<Id>>Blob ids that could not be found in the account’s blob store.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for EmailParseResponse
impl Clone for EmailParseResponse
Source§fn clone(&self) -> EmailParseResponse
fn clone(&self) -> EmailParseResponse
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 EmailParseResponse
impl Debug for EmailParseResponse
Source§impl<'de> Deserialize<'de> for EmailParseResponse
impl<'de> Deserialize<'de> for EmailParseResponse
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 EmailParseResponse
impl RefUnwindSafe for EmailParseResponse
impl Send for EmailParseResponse
impl Sync for EmailParseResponse
impl Unpin for EmailParseResponse
impl UnsafeUnpin for EmailParseResponse
impl UnwindSafe for EmailParseResponse
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