Struct cdp::dom::MoveToCommand
[−]
[src]
pub struct MoveToCommand { pub node_id: NodeId, pub target_node_id: NodeId, pub insert_before_node_id: Option<NodeId>, }
Moves node into the new container, places it before the given anchor.
Command DOM.moveTo
Domain Module: cdp::dom
Command Struct: cdp::dom::MoveToCommand
Response Struct: cdp::dom::MoveToResponse
Fields
node_id: NodeId
Id of the node to move.
target_node_id: NodeId
Id of the element to drop the moved node into.
insert_before_node_id: Option<NodeId>
Drop node before this one (if absent, the moved node becomes the last child of targetNodeId
).
Trait Implementations
impl Clone for MoveToCommand
[src]
fn clone(&self) -> MoveToCommand
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MoveToCommand
[src]
impl PartialEq for MoveToCommand
[src]
fn eq(&self, __arg_0: &MoveToCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MoveToCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for MoveToCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "DOM.moveTo"
impl SerializeCdpCommand for MoveToCommand
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for MoveToCommand
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,