[][src]Struct webpage::Webpage

pub struct Webpage {
    pub http: HTTP,
    pub html: HTML,
}

Resulting info for a webpage

Fields

http: HTTP

info about the HTTP transfer

html: HTML

info from the parsed HTML doc

Methods

impl Webpage[src]

pub fn from_url(url: &str, options: WebpageOptions) -> Result<Self, Error>[src]

Fetch a webpage from the given URL, and extract HTML info

Examples

use webpage::{Webpage, WebpageOptions};

let info = Webpage::from_url("http://example.org", WebpageOptions::default());
assert!(info.is_ok())

Auto Trait Implementations

impl Send for Webpage

impl Sync for Webpage

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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