pub struct ScrollIntoViewIfNeededParams {
pub nodeId: Option<NodeId>,
pub backendNodeId: Option<BackendNodeId>,
pub objectId: Option<RemoteObjectId>,
pub rect: Option<Rect>,
}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.
Fields§
§nodeId: Option<NodeId>Identifier of the node.
backendNodeId: Option<BackendNodeId>Identifier of the backend node.
objectId: Option<RemoteObjectId>JavaScript object id of the node wrapper.
rect: Option<Rect>The rect to be scrolled into view, relative to the node’s border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.
Implementations§
Trait Implementations§
Source§impl Clone for ScrollIntoViewIfNeededParams
impl Clone for ScrollIntoViewIfNeededParams
Source§fn clone(&self) -> ScrollIntoViewIfNeededParams
fn clone(&self) -> ScrollIntoViewIfNeededParams
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 ScrollIntoViewIfNeededParams
impl Debug for ScrollIntoViewIfNeededParams
Source§impl Default for ScrollIntoViewIfNeededParams
impl Default for ScrollIntoViewIfNeededParams
Source§fn default() -> ScrollIntoViewIfNeededParams
fn default() -> ScrollIntoViewIfNeededParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScrollIntoViewIfNeededParams
impl<'de> Deserialize<'de> for ScrollIntoViewIfNeededParams
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
Auto Trait Implementations§
impl Freeze for ScrollIntoViewIfNeededParams
impl RefUnwindSafe for ScrollIntoViewIfNeededParams
impl Send for ScrollIntoViewIfNeededParams
impl Sync for ScrollIntoViewIfNeededParams
impl Unpin for ScrollIntoViewIfNeededParams
impl UnsafeUnpin for ScrollIntoViewIfNeededParams
impl UnwindSafe for ScrollIntoViewIfNeededParams
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