msg_auth_status/iprev/
ptypes.rs

1//! iprev ptype and it's properties
2
3/// iprev ptypes
4#[derive(Clone, Debug, PartialEq)]
5pub enum IpRevProperty<'hdr> {
6    /// iprev.policy
7    Policy(IpRevPolicy<'hdr>),
8    /// smtp.* rfc-undefined
9    Smtp(IpRevSmtp<'hdr>),
10}
11
12/// iprev ptype policy
13#[derive(Clone, Debug, PartialEq)]
14pub enum IpRevPolicy<'hdr> {
15    /// policy.iprev
16    IpRev(&'hdr str),
17    /// policy.*
18    Unknown(&'hdr str, &'hdr str),
19}
20
21/// iprev ptype smtp (fastmail breaks RFC)
22#[derive(Clone, Debug, PartialEq)]
23pub enum IpRevSmtp<'hdr> {
24    /// smtp.*
25    Unknown(&'hdr str, &'hdr str),
26}