pub struct ScrollRequest {
pub selector: Option<String>,
pub x: Option<f64>,
pub y: Option<f64>,
pub frame_selector: Option<String>,
}Expand description
Scroll command parameters.
selector targets a specific element when present. Otherwise the native
backend applies x and y deltas to the page scroll state.
Fields§
§selector: Option<String>Optional CSS selector for the element to scroll.
x: Option<f64>Optional horizontal scroll delta.
y: Option<f64>Optional vertical scroll delta.
frame_selector: Option<String>Optional frame selector retained for API compatibility.
Trait Implementations§
Source§impl Clone for ScrollRequest
impl Clone for ScrollRequest
Source§fn clone(&self) -> ScrollRequest
fn clone(&self) -> ScrollRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScrollRequest
impl Debug for ScrollRequest
Auto Trait Implementations§
impl Freeze for ScrollRequest
impl RefUnwindSafe for ScrollRequest
impl Send for ScrollRequest
impl Sync for ScrollRequest
impl Unpin for ScrollRequest
impl UnsafeUnpin for ScrollRequest
impl UnwindSafe for ScrollRequest
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