pub struct ScrollIntoViewIfNeeded {
pub method: ScrollIntoViewIfNeededMethod,
pub params: ScrollIntoViewIfNeededParams,
}Expand description
Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node. scrollIntoViewIfNeeded
Fields§
§method: ScrollIntoViewIfNeededMethod§params: ScrollIntoViewIfNeededParamsImplementations§
Source§impl ScrollIntoViewIfNeeded
impl ScrollIntoViewIfNeeded
pub fn builder() -> ScrollIntoViewIfNeededBuilder
Source§impl ScrollIntoViewIfNeeded
impl ScrollIntoViewIfNeeded
pub const IDENTIFIER: &'static str = "DOM.scrollIntoViewIfNeeded"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ScrollIntoViewIfNeeded
impl Clone for ScrollIntoViewIfNeeded
Source§fn clone(&self) -> ScrollIntoViewIfNeeded
fn clone(&self) -> ScrollIntoViewIfNeeded
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 ScrollIntoViewIfNeeded
impl CommandResult for ScrollIntoViewIfNeeded
type Result = ScrollIntoViewIfNeededResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for ScrollIntoViewIfNeeded
impl Debug for ScrollIntoViewIfNeeded
Source§impl<'de> Deserialize<'de> for ScrollIntoViewIfNeeded
impl<'de> Deserialize<'de> for ScrollIntoViewIfNeeded
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<ScrollIntoViewIfNeeded> for BrowserProtocolCommands
impl From<ScrollIntoViewIfNeeded> for BrowserProtocolCommands
Source§fn from(v: ScrollIntoViewIfNeeded) -> Self
fn from(v: ScrollIntoViewIfNeeded) -> Self
Converts to this type from the input type.
Source§impl From<ScrollIntoViewIfNeeded> for Command
impl From<ScrollIntoViewIfNeeded> for Command
Source§fn from(v: ScrollIntoViewIfNeeded) -> Self
fn from(v: ScrollIntoViewIfNeeded) -> Self
Converts to this type from the input type.
Source§impl From<ScrollIntoViewIfNeeded> for DomCommands
impl From<ScrollIntoViewIfNeeded> for DomCommands
Source§fn from(v: ScrollIntoViewIfNeeded) -> Self
fn from(v: ScrollIntoViewIfNeeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScrollIntoViewIfNeeded
impl PartialEq for ScrollIntoViewIfNeeded
Source§impl Serialize for ScrollIntoViewIfNeeded
impl Serialize for ScrollIntoViewIfNeeded
Source§impl TryFrom<BrowserProtocolCommands> for ScrollIntoViewIfNeeded
impl TryFrom<BrowserProtocolCommands> for ScrollIntoViewIfNeeded
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, <ScrollIntoViewIfNeeded as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ScrollIntoViewIfNeeded as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for ScrollIntoViewIfNeeded
impl TryFrom<Command> for ScrollIntoViewIfNeeded
Source§impl TryFrom<DomCommands> for ScrollIntoViewIfNeeded
impl TryFrom<DomCommands> for ScrollIntoViewIfNeeded
Source§type Error = DomCommands
type Error = DomCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DomCommands,
) -> Result<Self, <ScrollIntoViewIfNeeded as TryFrom<DomCommands>>::Error>
fn try_from( e: DomCommands, ) -> Result<Self, <ScrollIntoViewIfNeeded as TryFrom<DomCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ScrollIntoViewIfNeeded
Auto Trait Implementations§
impl Freeze for ScrollIntoViewIfNeeded
impl RefUnwindSafe for ScrollIntoViewIfNeeded
impl Send for ScrollIntoViewIfNeeded
impl Sync for ScrollIntoViewIfNeeded
impl Unpin for ScrollIntoViewIfNeeded
impl UnsafeUnpin for ScrollIntoViewIfNeeded
impl UnwindSafe for ScrollIntoViewIfNeeded
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