[−][src]Struct viaspf::record::Record
An SPF record.
Examples
use viaspf::record::Record; let record = "v=spf1 -all".parse::<Record>()?; assert_eq!(record.to_string(), "v=spf1 -all");
Fields
terms: Vec<Term>
The record’s terms.
Implementations
impl Record
[src]
pub fn directives(&self) -> impl Iterator<Item = &Directive>
[src]
Returns an iterator over the record’s directives.
pub fn modifiers(&self) -> impl Iterator<Item = &Modifier>
[src]
Returns an iterator over the record’s modifiers.
Trait Implementations
impl Clone for Record
[src]
impl Debug for Record
[src]
impl Default for Record
[src]
impl Display for Record
[src]
impl Eq for Record
[src]
impl From<Vec<Term>> for Record
[src]
impl FromIterator<Term> for Record
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Term>,
[src]
I: IntoIterator<Item = Term>,
impl FromStr for Record
[src]
type Err = ParseRecordError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Record
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoIterator for Record
[src]
type Item = Term
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Record> for Record
[src]
impl StructuralEq for Record
[src]
impl StructuralPartialEq for Record
[src]
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,