Struct cdp::dom::CopyToCommand
[−]
[src]
pub struct CopyToCommand { pub node_id: NodeId, pub target_node_id: NodeId, pub insert_before_node_id: Option<NodeId>, }
[Experimental] Creates a deep copy of the specified node and places it into the target container before the given anchor.
Command DOM.copyTo
Domain Module: cdp::dom
Command Struct: cdp::dom::CopyToCommand
Response Struct: cdp::dom::CopyToResponse
Fields
node_id: NodeId
Id of the node to copy.
target_node_id: NodeId
Id of the element to drop the copy into.
insert_before_node_id: Option<NodeId>
Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId
).
Trait Implementations
impl Clone for CopyToCommand
[src]
fn clone(&self) -> CopyToCommand
[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 CopyToCommand
[src]
impl PartialEq for CopyToCommand
[src]
fn eq(&self, __arg_0: &CopyToCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CopyToCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for CopyToCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "DOM.copyTo"
impl SerializeCdpCommand for CopyToCommand
[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 CopyToCommand
[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>,