pub struct ScrollIntoViewIfNeeded {
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.
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 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 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 Method for ScrollIntoViewIfNeeded
impl Method for ScrollIntoViewIfNeeded
const NAME: &'static str = "DOM.scrollIntoViewIfNeeded"
type ReturnObject = ScrollIntoViewIfNeededReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for ScrollIntoViewIfNeeded
impl PartialEq for ScrollIntoViewIfNeeded
Source§impl Serialize for ScrollIntoViewIfNeeded
impl Serialize for ScrollIntoViewIfNeeded
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