pub enum JmapEmailSubmissionSetItemError {
TooManyRecipients {
description: Option<String>,
},
NoRecipients {
description: Option<String>,
},
InvalidRecipients {
description: Option<String>,
},
ForbiddenFrom {
description: Option<String>,
},
ForbiddenMailFrom {
description: Option<String>,
},
ForbiddenToSend {
description: Option<String>,
},
CannotUnsendMessage {
description: Option<String>,
},
InvalidEmail {
description: Option<String>,
},
NotFound {
description: Option<String>,
},
InvalidProperties {
description: Option<String>,
properties: Vec<String>,
},
Unknown,
}Expand description
Per-object error returned in EmailSubmission/set responses
(RFC 8621 §7.5); shared by the create (set) and cancel flows.
Variants§
TooManyRecipients
The message had too many recipients (RFC 8621 §7.5).
NoRecipients
The message had no recipients (RFC 8621 §7.5).
InvalidRecipients
One or more recipient addresses were invalid (RFC 8621 §7.5).
ForbiddenFrom
The From address is not permitted for this identity (RFC 8621 §7.5).
ForbiddenMailFrom
The MAIL FROM address is not permitted (RFC 8621 §7.5).
ForbiddenToSend
This user is not permitted to send email (RFC 8621 §7.5).
CannotUnsendMessage
The submission cannot be unsent (RFC 8621 §7.5).
InvalidEmail
The email object was not a valid message (RFC 8621 §7.5).
NotFound
Standard set error (RFC 8620 §5.3): target id not found.
InvalidProperties
Standard set error (RFC 8620 §5.3): one or more properties were invalid.
Fields
Unknown
Catch-all for set errors not modelled above.
Trait Implementations§
Source§impl Clone for JmapEmailSubmissionSetItemError
impl Clone for JmapEmailSubmissionSetItemError
Source§fn clone(&self) -> JmapEmailSubmissionSetItemError
fn clone(&self) -> JmapEmailSubmissionSetItemError
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<'de> Deserialize<'de> for JmapEmailSubmissionSetItemError
impl<'de> Deserialize<'de> for JmapEmailSubmissionSetItemError
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 JmapEmailSubmissionSetItemError
impl RefUnwindSafe for JmapEmailSubmissionSetItemError
impl Send for JmapEmailSubmissionSetItemError
impl Sync for JmapEmailSubmissionSetItemError
impl Unpin for JmapEmailSubmissionSetItemError
impl UnsafeUnpin for JmapEmailSubmissionSetItemError
impl UnwindSafe for JmapEmailSubmissionSetItemError
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