pub struct SetAdBlockingEnabled {
pub method: SetAdBlockingEnabledMethod,
pub params: SetAdBlockingEnabledParams,
}Expand description
Enable Chrome’s experimental ad filter on all sites. setAdBlockingEnabled
Fields§
§method: SetAdBlockingEnabledMethod§params: SetAdBlockingEnabledParamsImplementations§
Source§impl SetAdBlockingEnabled
impl SetAdBlockingEnabled
pub fn builder() -> SetAdBlockingEnabledBuilder
Source§impl SetAdBlockingEnabled
impl SetAdBlockingEnabled
pub const IDENTIFIER: &'static str = "Page.setAdBlockingEnabled"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetAdBlockingEnabled
impl Clone for SetAdBlockingEnabled
Source§fn clone(&self) -> SetAdBlockingEnabled
fn clone(&self) -> SetAdBlockingEnabled
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 CommandResult for SetAdBlockingEnabled
impl CommandResult for SetAdBlockingEnabled
type Result = SetAdBlockingEnabledResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetAdBlockingEnabled
impl Debug for SetAdBlockingEnabled
Source§impl<'de> Deserialize<'de> for SetAdBlockingEnabled
impl<'de> Deserialize<'de> for SetAdBlockingEnabled
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 From<SetAdBlockingEnabled> for BrowserProtocolCommands
impl From<SetAdBlockingEnabled> for BrowserProtocolCommands
Source§fn from(v: SetAdBlockingEnabled) -> Self
fn from(v: SetAdBlockingEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetAdBlockingEnabled> for Command
impl From<SetAdBlockingEnabled> for Command
Source§fn from(v: SetAdBlockingEnabled) -> Self
fn from(v: SetAdBlockingEnabled) -> Self
Converts to this type from the input type.
Source§impl From<SetAdBlockingEnabled> for PageCommands
impl From<SetAdBlockingEnabled> for PageCommands
Source§fn from(v: SetAdBlockingEnabled) -> Self
fn from(v: SetAdBlockingEnabled) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetAdBlockingEnabled
impl PartialEq for SetAdBlockingEnabled
Source§impl Serialize for SetAdBlockingEnabled
impl Serialize for SetAdBlockingEnabled
Source§impl TryFrom<BrowserProtocolCommands> for SetAdBlockingEnabled
impl TryFrom<BrowserProtocolCommands> for SetAdBlockingEnabled
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <SetAdBlockingEnabled as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetAdBlockingEnabled as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetAdBlockingEnabled
impl TryFrom<Command> for SetAdBlockingEnabled
Source§impl TryFrom<PageCommands> for SetAdBlockingEnabled
impl TryFrom<PageCommands> for SetAdBlockingEnabled
Source§type Error = PageCommands
type Error = PageCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageCommands,
) -> Result<Self, <SetAdBlockingEnabled as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <SetAdBlockingEnabled as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetAdBlockingEnabled
Auto Trait Implementations§
impl Freeze for SetAdBlockingEnabled
impl RefUnwindSafe for SetAdBlockingEnabled
impl Send for SetAdBlockingEnabled
impl Sync for SetAdBlockingEnabled
impl Unpin for SetAdBlockingEnabled
impl UnsafeUnpin for SetAdBlockingEnabled
impl UnwindSafe for SetAdBlockingEnabled
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