pub struct SmtpParameter<'a> {
pub keyword: SmtpAtom<'a>,
pub value: Option<Cow<'a, str>>,
}Expand description
An ESMTP parameter (keyword[=value]).
Fields§
§keyword: SmtpAtom<'a>The parameter keyword
value: Option<Cow<'a, str>>The optional parameter value
Implementations§
Source§impl SmtpParameter<'static>
DSN parameter constructors for MAIL FROM and RCPT TO
(RFC 3461).
impl SmtpParameter<'static>
DSN parameter constructors for MAIL FROM and RCPT TO
(RFC 3461).
Sourcepub fn envid(id: impl Into<String>) -> SmtpParameter<'static>
pub fn envid(id: impl Into<String>) -> SmtpParameter<'static>
Build the ENVID=<id> parameter for MAIL FROM.
The envelope identifier is an opaque string chosen by the sender that uniquely identifies this mail transaction. It is included in any DSN generated for the message.
The value must contain only printable US-ASCII characters
excluding = and whitespace (xtext encoding, RFC 3461 §4).
§Reference
RFC 3461 §4.4
Source§impl SmtpParameter<'static>
Original recipient parameter constructor for RCPT TO
(RFC 3461).
impl SmtpParameter<'static>
Original recipient parameter constructor for RCPT TO
(RFC 3461).
Sourcepub fn orcpt_rfc822(address: impl Into<String>) -> SmtpParameter<'static>
pub fn orcpt_rfc822(address: impl Into<String>) -> SmtpParameter<'static>
Build the ORCPT=rfc822;<address> parameter for RCPT TO.
Specifies the original recipient address, before any aliasing or forwarding, so that DSNs can reference it.
§Reference
RFC 3461 §4.2
Trait Implementations§
Source§impl<'a> Clone for SmtpParameter<'a>
impl<'a> Clone for SmtpParameter<'a>
Source§fn clone(&self) -> SmtpParameter<'a>
fn clone(&self) -> SmtpParameter<'a>
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<'a> Debug for SmtpParameter<'a>
impl<'a> Debug for SmtpParameter<'a>
Source§impl Display for SmtpParameter<'_>
impl Display for SmtpParameter<'_>
impl<'a> Eq for SmtpParameter<'a>
Source§impl<'a> Hash for SmtpParameter<'a>
impl<'a> Hash for SmtpParameter<'a>
Source§impl<'a> IntoBoundedStatic for SmtpParameter<'a>
impl<'a> IntoBoundedStatic for SmtpParameter<'a>
Source§type Static = SmtpParameter<'static>
type Static = SmtpParameter<'static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl<'a> PartialEq for SmtpParameter<'a>
impl<'a> PartialEq for SmtpParameter<'a>
impl<'a> StructuralPartialEq for SmtpParameter<'a>
Source§impl<'a> ToBoundedStatic for SmtpParameter<'a>
impl<'a> ToBoundedStatic for SmtpParameter<'a>
Auto Trait Implementations§
impl<'a> Freeze for SmtpParameter<'a>
impl<'a> RefUnwindSafe for SmtpParameter<'a>
impl<'a> Send for SmtpParameter<'a>
impl<'a> Sync for SmtpParameter<'a>
impl<'a> Unpin for SmtpParameter<'a>
impl<'a> UnsafeUnpin for SmtpParameter<'a>
impl<'a> UnwindSafe for SmtpParameter<'a>
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.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.