msg_auth_status/auth/ptypes.rs
1//! auth ptype and it's properties
2//!
3//! And Auth in RFC 8601 s. 2.7
4
5/// auth ptypes
6#[derive(Clone, Debug, PartialEq)]
7pub enum AuthProperty<'hdr> {
8 /// smtp.*
9 Smtp(AuthSmtp<'hdr>),
10}
11
12/// auth smtp.* properties
13#[derive(Clone, Debug, PartialEq)]
14pub enum AuthSmtp<'hdr> {
15 /// smtp.mailfrom
16 MailFrom(&'hdr str),
17 /// smtp.auth
18 Auth(&'hdr str),
19}