[][src]Struct robots_txt::parts::robots::Robots

pub struct Robots<'a> {
    pub default_section: Section<'a>,
    pub sections: Vec<Section<'a>>,
    pub host: Option<Cow<'a, str>>,
}

Fields

default_section: Section<'a>sections: Vec<Section<'a>>host: Option<Cow<'a, str>>

Methods

impl<'a> Robots<'a>[src]

pub fn builder() -> RobotsBuilder<'a>[src]

pub fn from_str_lossy(input: &'a str) -> Robots<'a>[src]

pub fn choose_section<U>(&self, ua: U) -> &Section<'a> where
    U: AsRef<str>, 
[src]

Trait Implementations

impl<'a> Clone for Robots<'a>[src]

impl<'a> Debug for Robots<'a>[src]

impl<'a> Default for Robots<'a>[src]

impl<'a> Display for Robots<'a>[src]

impl<'a> PartialEq<Robots<'a>> for Robots<'a>[src]

impl<'a> StructuralPartialEq for Robots<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Robots<'a>

impl<'a> Send for Robots<'a>

impl<'a> Sync for Robots<'a>

impl<'a> Unpin for Robots<'a>

impl<'a> UnwindSafe for Robots<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.