Skip to main content

Feedback

Struct Feedback 

Source
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>

Source

pub fn write_rfc5322( &self, from: impl Into<Address<'x>>, to: &'x str, subject: &'x str, writer: impl Write, ) -> Result<()>

Source

pub fn to_rfc5322( &self, from: impl Into<Address<'x>>, to: &'x str, subject: &'x str, ) -> Result<String>

Source

pub fn to_arf(&self) -> String

Source§

impl<'x> Feedback<'x>

Source

pub fn parse_rfc5322(message: &'x [u8]) -> Result<Self, Error>

Source

pub fn parse_arf(arf: &'x [u8]) -> Option<Self>

Source§

impl<'x> Feedback<'x>

Source

pub fn new(feedback_type: FeedbackType) -> Self

Source

pub fn original_envelope_id(&self) -> Option<&str>

Source

pub fn feedback_type(&self) -> FeedbackType

Source

pub fn with_original_envelope_id(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn original_mail_from(&self) -> Option<&str>

Source

pub fn with_original_mail_from(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn original_rcpt_to(&self) -> Option<&str>

Source

pub fn with_original_rcpt_to(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn reporting_mta(&self) -> Option<&str>

Source

pub fn with_reporting_mta(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn user_agent(&self) -> Option<&str>

Source

pub fn with_user_agent(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn source_ip(&self) -> Option<IpAddr>

Source

pub fn with_source_ip(self, value: IpAddr) -> Self

Source

pub fn dkim_adsp_dns(&self) -> Option<&str>

Source

pub fn with_dkim_adsp_dns(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn dkim_canonicalized_body(&self) -> Option<&str>

Source

pub fn with_dkim_canonicalized_body( self, value: impl Into<Cow<'x, str>>, ) -> Self

Source

pub fn dkim_canonicalized_header(&self) -> Option<&str>

Source

pub fn with_dkim_canonicalized_header( self, value: impl Into<Cow<'x, str>>, ) -> Self

Source

pub fn dkim_domain(&self) -> Option<&str>

Source

pub fn with_dkim_domain(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn dkim_identity(&self) -> Option<&str>

Source

pub fn with_dkim_identity(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn dkim_selector(&self) -> Option<&str>

Source

pub fn with_dkim_selector(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn dkim_selector_dns(&self) -> Option<&str>

Source

pub fn with_dkim_selector_dns(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn spf_dns(&self) -> Option<&str>

Source

pub fn with_spf_dns(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn message(&self) -> Option<&str>

Source

pub fn with_message(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn headers(&self) -> Option<&str>

Source

pub fn with_headers(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn arrival_date(&self) -> Option<i64>

Source

pub fn with_arrival_date(self, value: i64) -> Self

Source

pub fn incidents(&self) -> u32

Source

pub fn with_incidents(self, value: u32) -> Self

Source

pub fn version(&self) -> u32

Source

pub fn with_version(self, value: u32) -> Self

Source

pub fn source_port(&self) -> u32

Source

pub fn with_source_port(self, value: u32) -> Self

Source

pub fn authentication_results(&self) -> &[Cow<'x, str>]

Source

pub fn with_authentication_results(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn reported_domain(&self) -> &[Cow<'x, str>]

Source

pub fn with_reported_domain(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn reported_uri(&self) -> &[Cow<'x, str>]

Source

pub fn with_reported_uri(self, value: impl Into<Cow<'x, str>>) -> Self

Source

pub fn auth_failure(&self) -> AuthFailureType

Source

pub fn with_auth_failure(self, value: AuthFailureType) -> Self

Source

pub fn delivery_result(&self) -> DeliveryResult

Source

pub fn with_delivery_result(self, value: DeliveryResult) -> Self

Source

pub fn identity_alignment(&self) -> IdentityAlignment

Source

pub fn with_identity_alignment(self, value: IdentityAlignment) -> Self

Source

pub fn into_owned<'y>(self) -> Feedback<'y>

Trait Implementations§

Source§

impl<'x> Clone for Feedback<'x>

Source§

fn clone(&self) -> Feedback<'x>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'x> Debug for Feedback<'x>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'x> Default for Feedback<'x>

Source§

fn default() -> Feedback<'x>

Returns the “default value” for a type. Read more
Source§

impl<'de, 'x> Deserialize<'de> for Feedback<'x>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'x> PartialEq for Feedback<'x>

Source§

fn eq(&self, other: &Feedback<'x>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'x> Serialize for Feedback<'x>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'x> Eq for Feedback<'x>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,