#[non_exhaustive]pub struct EmailImportResponse {
pub account_id: Id,
pub old_state: Option<State>,
pub new_state: State,
pub created: Option<HashMap<String, EmailImportCreated>>,
pub not_created: Option<HashMap<String, SetError>>,
pub extra: Map<String, Value>,
}Expand description
Response to Email/import (RFC 8621 §4.8).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: IdThe account this response refers to.
old_state: Option<State>State token before the import, or null if the server cannot supply one.
new_state: StateState token after the import.
created: Option<HashMap<String, EmailImportCreated>>Successfully imported Emails keyed by creation id.
not_created: Option<HashMap<String, SetError>>Failures keyed by creation id (RFC 8621 §4.8 errors include
alreadyExists, invalidProperties, overQuota, invalidEmail).
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).
Constraint: keys in extra MUST NOT collide with the
typed-field wire names above (the camelCase spelling — e.g.
"accountId", "ids", "properties", "blobIds",
"fromAccountId", etc.). On collision the typed-field value
wins on the wire and the extra value is silently dropped at
serialization. Place vendor extensions under vendor-prefixed
keys (e.g. "acmeCorpFoo") to avoid the collision class.
Trait Implementations§
Source§impl Clone for EmailImportResponse
impl Clone for EmailImportResponse
Source§fn clone(&self) -> EmailImportResponse
fn clone(&self) -> EmailImportResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more