[][src]Struct adblock::request::Request

pub struct Request {
    pub request_type: RequestType,
    pub is_http: bool,
    pub is_https: bool,
    pub is_supported: bool,
    pub is_first_party: Option<bool>,
    pub is_third_party: Option<bool>,
    pub url: String,
    pub hostname: String,
    pub source_hostname_hashes: Option<Vec<Hash>>,
    pub bug: Option<u32>,
    // some fields omitted
}

Fields

request_type: RequestTypeis_http: boolis_https: boolis_supported: boolis_first_party: Option<bool>is_third_party: Option<bool>url: Stringhostname: Stringsource_hostname_hashes: Option<Vec<Hash>>bug: Option<u32>

Implementations

impl<'a> Request[src]

pub fn get_tokens(&self, token_buffer: &mut Vec<Hash>)[src]

pub fn url_after_hostname(&self) -> &str[src]

pub fn new(
    raw_type: &str,
    url: &str,
    schema: &str,
    hostname: &str,
    domain: &str,
    source_hostname: &str,
    source_domain: &str
) -> Request
[src]

pub fn from_urls(
    url: &str,
    source_url: &str,
    request_type: &str
) -> Result<Request, RequestError>
[src]

pub fn from_urls_with_hostname(
    url: &str,
    hostname: &str,
    source_hostname: &str,
    request_type: &str,
    third_party_request: Option<bool>
) -> Request
[src]

pub fn from_url(url: &str) -> Result<Request, RequestError>[src]

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

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, 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.