[][src]Struct headless_chrome::protocol::network::methods::RequestPattern

pub struct RequestPattern<'a> {
    pub url_pattern: Option<&'a str>,
    pub resource_type: Option<&'a str>,
    pub interception_stage: Option<&'a str>,
}

Fields

url_pattern: Option<&'a str>

Wildcards ('' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "".

resource_type: Option<&'a str>

Resource type as it was perceived by the rendering engine.

Allowed values: Document, Stylesheet, Image, Media, Font, Script, TextTrack, XHR, Fetch, EventSource, WebSocket, Manifest, SignedExchange, Ping, CSPViolationReport, Other

interception_stage: Option<&'a str>

Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.

Allowed values: Request, HeadersReceived

Trait Implementations

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

impl<'a> Serialize for RequestPattern<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for RequestPattern<'a>

impl<'a> Send for RequestPattern<'a>

impl<'a> Sync for RequestPattern<'a>

impl<'a> UnwindSafe for RequestPattern<'a>

impl<'a> RefUnwindSafe for RequestPattern<'a>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.