pub struct Feedback<'x> {Show 27 fields
pub feedback_type: FeedbackType,
pub arrival_date: Option<i64>,
pub authentication_results: Vec<Cow<'x, str>>,
pub incidents: u32,
pub original_envelope_id: Option<Cow<'x, str>>,
pub original_mail_from: Option<Cow<'x, str>>,
pub original_rcpt_to: Option<Cow<'x, str>>,
pub reported_domain: Vec<Cow<'x, str>>,
pub reported_uri: Vec<Cow<'x, str>>,
pub reporting_mta: Option<Cow<'x, str>>,
pub source_ip: Option<IpAddr>,
pub user_agent: Option<Cow<'x, str>>,
pub version: u32,
pub source_port: u32,
pub auth_failure: AuthFailureType,
pub delivery_result: DeliveryResult,
pub dkim_adsp_dns: Option<Cow<'x, str>>,
pub dkim_canonicalized_body: Option<Cow<'x, str>>,
pub dkim_canonicalized_header: Option<Cow<'x, str>>,
pub dkim_domain: Option<Cow<'x, str>>,
pub dkim_identity: Option<Cow<'x, str>>,
pub dkim_selector: Option<Cow<'x, str>>,
pub dkim_selector_dns: Option<Cow<'x, str>>,
pub spf_dns: Option<Cow<'x, str>>,
pub identity_alignment: IdentityAlignment,
pub message: Option<Cow<'x, str>>,
pub headers: Option<Cow<'x, str>>,
}Fields§
§feedback_type: FeedbackType§arrival_date: Option<i64>§authentication_results: Vec<Cow<'x, str>>§incidents: u32§original_envelope_id: Option<Cow<'x, str>>§original_mail_from: Option<Cow<'x, str>>§original_rcpt_to: Option<Cow<'x, str>>§reported_domain: Vec<Cow<'x, str>>§reported_uri: Vec<Cow<'x, str>>§reporting_mta: Option<Cow<'x, str>>§source_ip: Option<IpAddr>§user_agent: Option<Cow<'x, str>>§version: u32§source_port: u32§auth_failure: AuthFailureType§delivery_result: DeliveryResult§dkim_adsp_dns: Option<Cow<'x, str>>§dkim_canonicalized_body: Option<Cow<'x, str>>§dkim_canonicalized_header: Option<Cow<'x, str>>§dkim_domain: Option<Cow<'x, str>>§dkim_identity: Option<Cow<'x, str>>§dkim_selector: Option<Cow<'x, str>>§dkim_selector_dns: Option<Cow<'x, str>>§spf_dns: Option<Cow<'x, str>>§identity_alignment: IdentityAlignment§message: Option<Cow<'x, str>>§headers: Option<Cow<'x, str>>Implementations§
Source§impl<'x> Feedback<'x>
impl<'x> Feedback<'x>
pub fn new(feedback_type: FeedbackType) -> Self
pub fn original_envelope_id(&self) -> Option<&str>
pub fn feedback_type(&self) -> FeedbackType
pub fn with_original_envelope_id(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn original_mail_from(&self) -> Option<&str>
pub fn with_original_mail_from(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn original_rcpt_to(&self) -> Option<&str>
pub fn with_original_rcpt_to(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn reporting_mta(&self) -> Option<&str>
pub fn with_reporting_mta(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn user_agent(&self) -> Option<&str>
pub fn with_user_agent(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn source_ip(&self) -> Option<IpAddr>
pub fn with_source_ip(self, value: IpAddr) -> Self
pub fn dkim_adsp_dns(&self) -> Option<&str>
pub fn with_dkim_adsp_dns(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn dkim_canonicalized_body(&self) -> Option<&str>
pub fn with_dkim_canonicalized_body( self, value: impl Into<Cow<'x, str>>, ) -> Self
pub fn dkim_canonicalized_header(&self) -> Option<&str>
pub fn with_dkim_canonicalized_header( self, value: impl Into<Cow<'x, str>>, ) -> Self
pub fn dkim_domain(&self) -> Option<&str>
pub fn with_dkim_domain(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn dkim_identity(&self) -> Option<&str>
pub fn with_dkim_identity(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn dkim_selector(&self) -> Option<&str>
pub fn with_dkim_selector(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn dkim_selector_dns(&self) -> Option<&str>
pub fn with_dkim_selector_dns(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn spf_dns(&self) -> Option<&str>
pub fn with_spf_dns(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn message(&self) -> Option<&str>
pub fn with_message(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn headers(&self) -> Option<&str>
pub fn with_headers(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn arrival_date(&self) -> Option<i64>
pub fn with_arrival_date(self, value: i64) -> Self
pub fn incidents(&self) -> u32
pub fn with_incidents(self, value: u32) -> Self
pub fn version(&self) -> u32
pub fn with_version(self, value: u32) -> Self
pub fn source_port(&self) -> u32
pub fn with_source_port(self, value: u32) -> Self
pub fn authentication_results(&self) -> &[Cow<'x, str>]
pub fn with_authentication_results(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn reported_domain(&self) -> &[Cow<'x, str>]
pub fn with_reported_domain(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn reported_uri(&self) -> &[Cow<'x, str>]
pub fn with_reported_uri(self, value: impl Into<Cow<'x, str>>) -> Self
pub fn auth_failure(&self) -> AuthFailureType
pub fn with_auth_failure(self, value: AuthFailureType) -> Self
pub fn delivery_result(&self) -> DeliveryResult
pub fn with_delivery_result(self, value: DeliveryResult) -> Self
pub fn identity_alignment(&self) -> IdentityAlignment
pub fn with_identity_alignment(self, value: IdentityAlignment) -> Self
pub fn into_owned<'y>(self) -> Feedback<'y>
Trait Implementations§
Source§impl<'de, 'x> Deserialize<'de> for Feedback<'x>
impl<'de, 'x> Deserialize<'de> for Feedback<'x>
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
impl<'x> Eq for Feedback<'x>
impl<'x> StructuralPartialEq for Feedback<'x>
Auto Trait Implementations§
impl<'x> Freeze for Feedback<'x>
impl<'x> RefUnwindSafe for Feedback<'x>
impl<'x> Send for Feedback<'x>
impl<'x> Sync for Feedback<'x>
impl<'x> Unpin for Feedback<'x>
impl<'x> UnsafeUnpin for Feedback<'x>
impl<'x> UnwindSafe for Feedback<'x>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.