pub struct RequestPattern { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security and experimental only.Expand description
Request pattern for interception.
Implementations§
Source§impl RequestPattern
impl RequestPattern
pub fn new( url_pattern: Option<String>, resource_type: Option<ResourceType>, interception_stage: Option<JsonValue>, ) -> Self
Sourcepub fn url_pattern(&self) -> Option<&String>
pub fn url_pattern(&self) -> Option<&String>
Wildcards (‘’ -> zero or more, ‘?’ -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to “”.
Sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
If set, only requests for matching resource types will be intercepted.
Sourcepub fn interception_stage(&self) -> Option<&JsonValue>
pub fn interception_stage(&self) -> Option<&JsonValue>
Stage at wich to begin intercepting requests. Default is Request.
Trait Implementations§
Source§impl Clone for RequestPattern
impl Clone for RequestPattern
Source§fn clone(&self) -> RequestPattern
fn clone(&self) -> RequestPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestPattern
impl Debug for RequestPattern
Source§impl<'de> Deserialize<'de> for RequestPattern
impl<'de> Deserialize<'de> for RequestPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestPattern
impl RefUnwindSafe for RequestPattern
impl Send for RequestPattern
impl Sync for RequestPattern
impl Unpin for RequestPattern
impl UnwindSafe for RequestPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more