pub struct NetworkInterceptor {
pub patterns: Vec<String>,
pub block: bool,
pub response_override: Option<NetworkResponse>,
}Expand description
Network request interceptor configuration
Fields§
§patterns: Vec<String>URL patterns to intercept
block: boolWhether to block matching requests
response_override: Option<NetworkResponse>Response to return (if overriding)
Trait Implementations§
Source§impl Clone for NetworkInterceptor
impl Clone for NetworkInterceptor
Source§fn clone(&self) -> NetworkInterceptor
fn clone(&self) -> NetworkInterceptor
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 NetworkInterceptor
impl Debug for NetworkInterceptor
Source§impl Default for NetworkInterceptor
impl Default for NetworkInterceptor
Source§fn default() -> NetworkInterceptor
fn default() -> NetworkInterceptor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NetworkInterceptor
impl RefUnwindSafe for NetworkInterceptor
impl Send for NetworkInterceptor
impl Sync for NetworkInterceptor
impl Unpin for NetworkInterceptor
impl UnsafeUnpin for NetworkInterceptor
impl UnwindSafe for NetworkInterceptor
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