Struct chrome_remote_interface_model::dom::GetDocumentReturn[][src]

pub struct GetDocumentReturn { /* fields omitted */ }

Returns the root DOM node (and optionally the subtree) to the caller.

Implementations

impl GetDocumentReturn[src]

pub fn new(root: Node) -> Self[src]

pub fn root(&self) -> &Node[src]

Resulting node.

Methods from Deref<Target = Node>

pub fn node_id(&self) -> &NodeId[src]

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.

pub fn parent_id(&self) -> Option<&NodeId>[src]

The id of the parent node if any.

pub fn backend_node_id(&self) -> &BackendNodeId[src]

The BackendNodeId for this node.

pub fn node_type(&self) -> u32[src]

Node's nodeType.

pub fn node_name(&self) -> &str[src]

Node's nodeName.

pub fn local_name(&self) -> &str[src]

Node's localName.

pub fn node_value(&self) -> &str[src]

Node's nodeValue.

pub fn child_node_count(&self) -> Option<&u32>[src]

Child count for Container nodes.

pub fn children(&self) -> Option<&Vec<Node>>[src]

Child nodes of this node when requested with children.

pub fn attributes(&self) -> Option<&Vec<String>>[src]

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

pub fn document_url(&self) -> Option<&String>[src]

Document URL that Document or FrameOwner node points to.

pub fn base_url(&self) -> Option<&String>[src]

Base URL that Document or FrameOwner node uses for URL completion.

pub fn public_id(&self) -> Option<&String>[src]

DocumentType's publicId.

pub fn system_id(&self) -> Option<&String>[src]

DocumentType's systemId.

pub fn internal_subset(&self) -> Option<&String>[src]

DocumentType's internalSubset.

pub fn xml_version(&self) -> Option<&String>[src]

Document's XML version in case of XML documents.

pub fn name(&self) -> Option<&String>[src]

Attr's name.

pub fn value(&self) -> Option<&String>[src]

Attr's value.

pub fn pseudo_type(&self) -> Option<&PseudoType>[src]

Pseudo element type for this node.

pub fn shadow_root_type(&self) -> Option<&ShadowRootType>[src]

Shadow root type.

pub fn frame_id(&self) -> Option<&FrameId>[src]

Frame ID for frame owner elements.

pub fn content_document(&self) -> Option<&Node>[src]

Content document for frame owner elements.

pub fn shadow_roots(&self) -> Option<&Vec<Node>>[src]

Shadow root list for given element host.

pub fn template_content(&self) -> Option<&Node>[src]

Content document fragment for template elements.

pub fn pseudo_elements(&self) -> Option<&Vec<Node>>[src]

Pseudo elements associated with this node.

pub fn imported_document(&self) -> Option<&Node>[src]

Import document for the HTMLImport links.

pub fn distributed_nodes(&self) -> Option<&Vec<BackendNode>>[src]

Distributed nodes for given insertion point.

pub fn is_svg(&self) -> Option<&bool>[src]

Whether the node is SVG.

Trait Implementations

impl Clone for GetDocumentReturn[src]

impl Debug for GetDocumentReturn[src]

impl Deref for GetDocumentReturn[src]

type Target = Node

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for GetDocumentReturn[src]

impl Serialize for GetDocumentReturn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.