#[non_exhaustive]pub struct RejectedRecipient {
pub recipient: ForwardPath,
pub response: SmtpResponse,
}Expand description
A recipient whose RCPT TO command was rejected by the server.
RFC 5321 Section 3.3: when some but not all RCPT TO commands are rejected, the server accepts the message for the remaining recipients. This struct preserves the rejection details so callers can report or retry individual failures.
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.recipient: ForwardPathThe rejected recipient address (RFC 5321 Section 4.1.2).
response: SmtpResponseThe server’s rejection response (4xx or 5xx).
Trait Implementations§
Source§impl Clone for RejectedRecipient
impl Clone for RejectedRecipient
Source§fn clone(&self) -> RejectedRecipient
fn clone(&self) -> RejectedRecipient
Returns a duplicate of the value. Read more
1.0.0 · 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 RejectedRecipient
impl Debug for RejectedRecipient
Source§impl Hash for RejectedRecipient
impl Hash for RejectedRecipient
Source§impl PartialEq for RejectedRecipient
impl PartialEq for RejectedRecipient
impl Eq for RejectedRecipient
impl StructuralPartialEq for RejectedRecipient
Auto Trait Implementations§
impl Freeze for RejectedRecipient
impl RefUnwindSafe for RejectedRecipient
impl Send for RejectedRecipient
impl Sync for RejectedRecipient
impl Unpin for RejectedRecipient
impl UnsafeUnpin for RejectedRecipient
impl UnwindSafe for RejectedRecipient
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