pub struct CopyTo {
pub node_id: NodeId,
pub target_node_id: NodeId,
pub insert_before_node_id: Option<NodeId>,
}Expand description
Creates a deep copy of the specified node and places it into the target container before the given anchor.
Fields§
§node_id: NodeIdId of the node to copy.
target_node_id: NodeIdId 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§
Source§impl<'de> Deserialize<'de> for CopyTo
impl<'de> Deserialize<'de> for CopyTo
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 CopyTo
impl Method for CopyTo
const NAME: &'static str = "DOM.copyTo"
type ReturnObject = CopyToReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
impl StructuralPartialEq for CopyTo
Auto Trait Implementations§
impl Freeze for CopyTo
impl RefUnwindSafe for CopyTo
impl Send for CopyTo
impl Sync for CopyTo
impl Unpin for CopyTo
impl UnsafeUnpin for CopyTo
impl UnwindSafe for CopyTo
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