pub enum Qualifier {
Pass,
Fail,
SoftFail,
Neutral,
}
Expand description
Declaration for possible Qualifier
of a given Mechanism
Variants§
Pass
This is the default value for a qualifier if the value is not present in the SPF record. It is denoted by ‘+’ (Plus Sign)
Fail
It is denoted by ‘-’ (Minus Sign)
SoftFail
It is denoted by ‘~’ (Tidle Mark)
Neutral
It is denoted by ‘?’ (Question Mark)
Implementations§
source§impl Qualifier
impl Qualifier
sourcepub fn is_softfail(&self) -> bool
pub fn is_softfail(&self) -> bool
Returns true
if the qualifier is SoftFail
.
sourcepub fn is_neutral(&self) -> bool
pub fn is_neutral(&self) -> bool
Returns true
if the qualifier is Neutral
.
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the character, as a string slice, that represents a given ‘Qualifier’ value in SPF.
sourcepub fn as_char(&self) -> char
pub fn as_char(&self) -> char
Returns the character, as a char
, that represents a given ‘Qualifier’
value in SPF.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Qualifier
impl<'de> Deserialize<'de> for Qualifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for Qualifier
impl PartialEq for Qualifier
impl Copy for Qualifier
impl StructuralPartialEq for Qualifier
Auto Trait Implementations§
impl RefUnwindSafe for Qualifier
impl Send for Qualifier
impl Sync for Qualifier
impl Unpin for Qualifier
impl UnwindSafe for Qualifier
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