pub struct EmulateNetworkConditionsByRuleReturnObject {
pub rule_ids: Vec<String>,
}Expand description
Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to
explicitly modify navigator behavior.
Fields§
§rule_ids: Vec<String>An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for requests affected by a rule.
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsByRuleReturnObject
impl Clone for EmulateNetworkConditionsByRuleReturnObject
Source§fn clone(&self) -> EmulateNetworkConditionsByRuleReturnObject
fn clone(&self) -> EmulateNetworkConditionsByRuleReturnObject
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<'de> Deserialize<'de> for EmulateNetworkConditionsByRuleReturnObject
impl<'de> Deserialize<'de> for EmulateNetworkConditionsByRuleReturnObject
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
Source§impl PartialEq for EmulateNetworkConditionsByRuleReturnObject
impl PartialEq for EmulateNetworkConditionsByRuleReturnObject
Source§fn eq(&self, other: &EmulateNetworkConditionsByRuleReturnObject) -> bool
fn eq(&self, other: &EmulateNetworkConditionsByRuleReturnObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmulateNetworkConditionsByRuleReturnObject
Auto Trait Implementations§
impl Freeze for EmulateNetworkConditionsByRuleReturnObject
impl RefUnwindSafe for EmulateNetworkConditionsByRuleReturnObject
impl Send for EmulateNetworkConditionsByRuleReturnObject
impl Sync for EmulateNetworkConditionsByRuleReturnObject
impl Unpin for EmulateNetworkConditionsByRuleReturnObject
impl UnsafeUnpin for EmulateNetworkConditionsByRuleReturnObject
impl UnwindSafe for EmulateNetworkConditionsByRuleReturnObject
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