Struct chromiumoxide::cdp::browser_protocol::input::DispatchDragEventParams
source · pub struct DispatchDragEventParams {
pub type: DispatchDragEventType,
pub x: f64,
pub y: f64,
pub data: DragData,
pub modifiers: Option<i64>,
}
Expand description
Dispatches a drag event into the page. dispatchDragEvent
Fields§
§type: DispatchDragEventType
Type of the drag event.
x: f64
X coordinate of the event relative to the main frame’s viewport in CSS pixels.
y: f64
Y coordinate of the event relative to the main frame’s viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
data: DragData
§modifiers: Option<i64>
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
Implementations§
source§impl DispatchDragEventParams
impl DispatchDragEventParams
pub const IDENTIFIER: &'static str = "Input.dispatchDragEvent"
Trait Implementations§
source§impl Clone for DispatchDragEventParams
impl Clone for DispatchDragEventParams
source§fn clone(&self) -> DispatchDragEventParams
fn clone(&self) -> DispatchDragEventParams
Returns a copy 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 Command for DispatchDragEventParams
impl Command for DispatchDragEventParams
§type Response = DispatchDragEventReturns
type Response = DispatchDragEventReturns
The type of the response this request triggers on the chromium server
source§impl Debug for DispatchDragEventParams
impl Debug for DispatchDragEventParams
source§impl<'de> Deserialize<'de> for DispatchDragEventParams
impl<'de> Deserialize<'de> for DispatchDragEventParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DispatchDragEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DispatchDragEventParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Method for DispatchDragEventParams
impl Method for DispatchDragEventParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
source§impl MethodType for DispatchDragEventParams
impl MethodType for DispatchDragEventParams
source§impl PartialEq for DispatchDragEventParams
impl PartialEq for DispatchDragEventParams
source§fn eq(&self, other: &DispatchDragEventParams) -> bool
fn eq(&self, other: &DispatchDragEventParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DispatchDragEventParams
impl Serialize for DispatchDragEventParams
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DispatchDragEventParams
Auto Trait Implementations§
impl RefUnwindSafe for DispatchDragEventParams
impl Send for DispatchDragEventParams
impl Sync for DispatchDragEventParams
impl Unpin for DispatchDragEventParams
impl UnwindSafe for DispatchDragEventParams
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