pub struct ScrollIntoViewIfNeededParams {
pub node_id: Option<NodeId>,
pub backend_node_id: Option<BackendNodeId>,
pub object_id: 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.
Parameters of DOM.scrollIntoViewIfNeeded.
Fields§
§node_id: Option<NodeId>Identifier of the node.
backend_node_id: Option<BackendNodeId>Identifier of the backend node.
object_id: 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.
Trait Implementations§
Source§impl Clone for ScrollIntoViewIfNeededParams
impl Clone for ScrollIntoViewIfNeededParams
Source§impl Debug for ScrollIntoViewIfNeededParams
impl Debug for ScrollIntoViewIfNeededParams
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
impl StructuralPartialEq for ScrollIntoViewIfNeededParams
Auto Trait Implementations§
impl Forget for ScrollIntoViewIfNeededParams
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