Struct cdp::dom::Node [] [src]

pub struct Node<'a> {
    pub node_id: NodeId,
    pub parent_id: Option<NodeId>,
    pub backend_node_id: BackendNodeId,
    pub node_type: i32,
    pub node_name: Cow<'a, str>,
    pub local_name: Cow<'a, str>,
    pub node_value: Cow<'a, str>,
    pub child_node_count: Option<i32>,
    pub children: Option<Vec<Box<Node<'a>>>>,
    pub attributes: Option<Vec<Cow<'a, str>>>,
    pub document_url: Option<Cow<'a, str>>,
    pub base_url: Option<Cow<'a, str>>,
    pub public_id: Option<Cow<'a, str>>,
    pub system_id: Option<Cow<'a, str>>,
    pub internal_subset: Option<Cow<'a, str>>,
    pub xml_version: Option<Cow<'a, str>>,
    pub name: Option<Cow<'a, str>>,
    pub value: Option<Cow<'a, str>>,
    pub pseudo_type: Option<PseudoType>,
    pub shadow_root_type: Option<ShadowRootType>,
    pub frame_id: Option<FrameId<'a>>,
    pub content_document: Option<Box<Node<'a>>>,
    pub shadow_roots: Option<Vec<Box<Node<'a>>>>,
    pub template_content: Option<Box<Node<'a>>>,
    pub pseudo_elements: Option<Vec<Box<Node<'a>>>>,
    pub imported_document: Option<Box<Node<'a>>>,
    pub distributed_nodes: Option<Vec<BackendNode<'a>>>,
    pub is_svg: Option<bool>,
}

DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

Fields

Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.

[Experimental] The id of the parent node if any.

[Experimental] The BackendNodeId for this node.

Node's nodeType.

Node's nodeName.

Node's localName.

Node's nodeValue.

Child count for Container nodes.

Child nodes of this node when requested with children.

Attributes of the Element node in the form of flat array [name1, value1, name2, value2].

Document URL that Document or FrameOwner node points to.

[Experimental] Base URL that Document or FrameOwner node uses for URL completion.

DocumentType's publicId.

DocumentType's systemId.

DocumentType's internalSubset.

Document's XML version in case of XML documents.

Attr's name.

Attr's value.

Pseudo element type for this node.

Shadow root type.

[Experimental] Frame ID for frame owner elements.

Content document for frame owner elements.

[Experimental] Shadow root list for given element host.

[Experimental] Content document fragment for template elements.

[Experimental] Pseudo elements associated with this node.

Import document for the HTMLImport links.

[Experimental] Distributed nodes for given insertion point.

[Experimental] Whether the node is SVG.

Trait Implementations

impl<'a> Clone for Node<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Node<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Node<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.