pub struct SetInspectModeParams {
pub mode: InspectMode,
pub highlight_config: Option<HighlightConfig>,
}Expand description
Enters the ‘inspect’ mode. In this mode, elements that user is hovering over are highlighted. Backend then generates ‘inspectNodeRequested’ event upon element selection. setInspectMode
Fields§
§mode: InspectModeSet an inspection mode.
highlight_config: Option<HighlightConfig>A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.
Implementations§
Source§impl SetInspectModeParams
impl SetInspectModeParams
pub fn new(mode: impl Into<InspectMode>) -> Self
Trait Implementations§
Source§impl Clone for SetInspectModeParams
impl Clone for SetInspectModeParams
Source§fn clone(&self) -> SetInspectModeParams
fn clone(&self) -> SetInspectModeParams
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 SetInspectModeParams
impl Debug for SetInspectModeParams
Source§impl<'de> Deserialize<'de> for SetInspectModeParams
impl<'de> Deserialize<'de> for SetInspectModeParams
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 SetInspectModeParams
impl PartialEq for SetInspectModeParams
Source§impl Serialize for SetInspectModeParams
impl Serialize for SetInspectModeParams
impl StructuralPartialEq for SetInspectModeParams
Auto Trait Implementations§
impl Freeze for SetInspectModeParams
impl RefUnwindSafe for SetInspectModeParams
impl Send for SetInspectModeParams
impl Sync for SetInspectModeParams
impl Unpin for SetInspectModeParams
impl UnsafeUnpin for SetInspectModeParams
impl UnwindSafe for SetInspectModeParams
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