pub struct GetLocationForSelector {
pub method: GetLocationForSelectorMethod,
pub params: GetLocationForSelectorParams,
}Expand description
Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet. getLocationForSelector
Fields§
§method: GetLocationForSelectorMethod§params: GetLocationForSelectorParamsImplementations§
Source§impl GetLocationForSelector
impl GetLocationForSelector
pub fn builder() -> GetLocationForSelectorBuilder
Source§impl GetLocationForSelector
impl GetLocationForSelector
pub const IDENTIFIER: &'static str = "CSS.getLocationForSelector"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for GetLocationForSelector
impl Clone for GetLocationForSelector
Source§fn clone(&self) -> GetLocationForSelector
fn clone(&self) -> GetLocationForSelector
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 GetLocationForSelector
impl CommandResult for GetLocationForSelector
type Result = GetLocationForSelectorResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for GetLocationForSelector
impl Debug for GetLocationForSelector
Source§impl<'de> Deserialize<'de> for GetLocationForSelector
impl<'de> Deserialize<'de> for GetLocationForSelector
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<GetLocationForSelector> for BrowserProtocolCommands
impl From<GetLocationForSelector> for BrowserProtocolCommands
Source§fn from(v: GetLocationForSelector) -> Self
fn from(v: GetLocationForSelector) -> Self
Converts to this type from the input type.
Source§impl From<GetLocationForSelector> for Command
impl From<GetLocationForSelector> for Command
Source§fn from(v: GetLocationForSelector) -> Self
fn from(v: GetLocationForSelector) -> Self
Converts to this type from the input type.
Source§impl From<GetLocationForSelector> for CssCommands
impl From<GetLocationForSelector> for CssCommands
Source§fn from(v: GetLocationForSelector) -> Self
fn from(v: GetLocationForSelector) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetLocationForSelector
impl PartialEq for GetLocationForSelector
Source§impl Serialize for GetLocationForSelector
impl Serialize for GetLocationForSelector
Source§impl TryFrom<BrowserProtocolCommands> for GetLocationForSelector
impl TryFrom<BrowserProtocolCommands> for GetLocationForSelector
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, <GetLocationForSelector as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <GetLocationForSelector as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for GetLocationForSelector
impl TryFrom<Command> for GetLocationForSelector
Source§impl TryFrom<CssCommands> for GetLocationForSelector
impl TryFrom<CssCommands> for GetLocationForSelector
Source§type Error = CssCommands
type Error = CssCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: CssCommands,
) -> Result<Self, <GetLocationForSelector as TryFrom<CssCommands>>::Error>
fn try_from( e: CssCommands, ) -> Result<Self, <GetLocationForSelector as TryFrom<CssCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for GetLocationForSelector
Auto Trait Implementations§
impl Freeze for GetLocationForSelector
impl RefUnwindSafe for GetLocationForSelector
impl Send for GetLocationForSelector
impl Sync for GetLocationForSelector
impl Unpin for GetLocationForSelector
impl UnsafeUnpin for GetLocationForSelector
impl UnwindSafe for GetLocationForSelector
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