pub struct NodeBuilder { /* private fields */ }DOM and Runtime only.Implementations§
Source§impl NodeBuilder
impl NodeBuilder
Sourcepub fn node_id(&mut self, v: NodeId) -> &mut Self
pub fn node_id(&mut self, v: NodeId) -> &mut Self
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.
Sourcepub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
pub fn backend_node_id(&mut self, v: BackendNodeId) -> &mut Self
The BackendNodeId for this node.
Sourcepub fn local_name(&mut self, v: String) -> &mut Self
pub fn local_name(&mut self, v: String) -> &mut Self
Node’s localName.
Sourcepub fn node_value(&mut self, v: String) -> &mut Self
pub fn node_value(&mut self, v: String) -> &mut Self
Node’s nodeValue.
Sourcepub fn child_node_count(&mut self, v: u32) -> &mut Self
pub fn child_node_count(&mut self, v: u32) -> &mut Self
Child count for Container nodes.
Sourcepub fn children(&mut self, v: Vec<Node>) -> &mut Self
pub fn children(&mut self, v: Vec<Node>) -> &mut Self
Child nodes of this node when requested with children.
Sourcepub fn attributes(&mut self, v: Vec<String>) -> &mut Self
pub fn attributes(&mut self, v: Vec<String>) -> &mut Self
Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
Sourcepub fn document_url(&mut self, v: String) -> &mut Self
pub fn document_url(&mut self, v: String) -> &mut Self
Document URL that Document or FrameOwner node points to.
Sourcepub fn base_url(&mut self, v: String) -> &mut Self
pub fn base_url(&mut self, v: String) -> &mut Self
Base URL that Document or FrameOwner node uses for URL completion.
Sourcepub fn internal_subset(&mut self, v: String) -> &mut Self
pub fn internal_subset(&mut self, v: String) -> &mut Self
DocumentType’s internalSubset.
Sourcepub fn xml_version(&mut self, v: String) -> &mut Self
pub fn xml_version(&mut self, v: String) -> &mut Self
Document’s XML version in case of XML documents.
Sourcepub fn pseudo_type(&mut self, v: PseudoType) -> &mut Self
pub fn pseudo_type(&mut self, v: PseudoType) -> &mut Self
Pseudo element type for this node.
Sourcepub fn shadow_root_type(&mut self, v: ShadowRootType) -> &mut Self
pub fn shadow_root_type(&mut self, v: ShadowRootType) -> &mut Self
Shadow root type.
Sourcepub fn content_document(&mut self, v: Node) -> &mut Self
pub fn content_document(&mut self, v: Node) -> &mut Self
Content document for frame owner elements.
Sourcepub fn shadow_roots(&mut self, v: Vec<Node>) -> &mut Self
pub fn shadow_roots(&mut self, v: Vec<Node>) -> &mut Self
Shadow root list for given element host.
Sourcepub fn template_content(&mut self, v: Node) -> &mut Self
pub fn template_content(&mut self, v: Node) -> &mut Self
Content document fragment for template elements.
Sourcepub fn pseudo_elements(&mut self, v: Vec<Node>) -> &mut Self
pub fn pseudo_elements(&mut self, v: Vec<Node>) -> &mut Self
Pseudo elements associated with this node.
Sourcepub fn imported_document(&mut self, v: Node) -> &mut Self
pub fn imported_document(&mut self, v: Node) -> &mut Self
Import document for the HTMLImport links.
Sourcepub fn distributed_nodes(&mut self, v: Vec<BackendNode>) -> &mut Self
pub fn distributed_nodes(&mut self, v: Vec<BackendNode>) -> &mut Self
Distributed nodes for given insertion point.
pub fn build(&mut self) -> Result<Node, &'static str>
Trait Implementations§
Source§impl Clone for NodeBuilder
impl Clone for NodeBuilder
Source§fn clone(&self) -> NodeBuilder
fn clone(&self) -> NodeBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more