[−][src]Struct adblock::request::Request
Fields
request_type: RequestType
is_http: bool
is_https: bool
is_supported: bool
is_first_party: Option<bool>
is_third_party: Option<bool>
url: String
hostname: String
source_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]
raw_type: &str,
url: &str,
schema: &str,
hostname: &str,
domain: &str,
source_hostname: &str,
source_domain: &str
) -> Request
pub fn from_urls(
url: &str,
source_url: &str,
request_type: &str
) -> Result<Request, RequestError>
[src]
url: &str,
source_url: &str,
request_type: &str
) -> Result<Request, RequestError>
pub fn from_urls_with_hostname(
url: &str,
hostname: &str,
source_hostname: &str,
request_type: &str,
third_party_request: Option<bool>
) -> Request
[src]
url: &str,
hostname: &str,
source_hostname: &str,
request_type: &str,
third_party_request: Option<bool>
) -> Request
pub fn from_url(url: &str) -> Result<Request, RequestError>
[src]
Trait Implementations
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]
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<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, 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>,