#[repr(u8)]pub enum Variable {
Sender = 0,
SenderLocalPart = 1,
SenderDomainPart = 2,
Domain = 3,
Ip = 4,
ValidatedDomain = 5,
IpVersion = 6,
HeloDomain = 7,
SmtpIp = 8,
HostDomain = 9,
CurrentTime = 10,
}Expand description
A macro letter (RFC 7208, Section 7.2).
s = <sender>
l = local-part of <sender>
o = domain of <sender>
d = <domain>
i = <ip>
p = the validated domain name of <ip> (do not use)
v = the string "in-addr" if <ip> is ipv4, or "ip6" if <ip> is ipv6
h = HELO/EHLO domainThe following macro letters are allowed only in exp text:
c = SMTP client IP (easily readable format)
r = domain name of host performing the check
t = current timestampVariants§
Sender = 0
s: the full <sender> address.
SenderLocalPart = 1
l: the local part of <sender>.
SenderDomainPart = 2
o: the domain of <sender>.
Domain = 3
d: the <domain> currently being evaluated.
Ip = 4
i: the client IP, as dotted decimal (IPv4) or dot-separated nibbles
(IPv6).
ValidatedDomain = 5
p: the validated domain name of the client IP (use is discouraged).
IpVersion = 6
v: in-addr for IPv4 clients, ip6 for IPv6 clients.
HeloDomain = 7
h: the HELO or EHLO domain.
SmtpIp = 8
c: the client IP in readable form (exp text only).
HostDomain = 9
r: the domain name of the host performing the check (exp text only).
CurrentTime = 10
t: the current time in seconds since the Unix epoch (exp text only).
Trait Implementations§
impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more