pub struct NodeBuilder { /* private fields */ }
Implementations§
Source§impl NodeBuilder
impl NodeBuilder
pub fn node_id(self, node_id: impl Into<NodeId>) -> Self
pub fn parent_id(self, parent_id: impl Into<NodeId>) -> Self
pub fn backend_node_id(self, backend_node_id: impl Into<BackendNodeId>) -> Self
pub fn node_type(self, node_type: impl Into<i64>) -> Self
pub fn node_name(self, node_name: impl Into<String>) -> Self
pub fn local_name(self, local_name: impl Into<String>) -> Self
pub fn node_value(self, node_value: impl Into<String>) -> Self
pub fn child_node_count(self, child_node_count: impl Into<i64>) -> Self
pub fn children(self, children: impl Into<Node>) -> Self
pub fn childrens<I, S>(self, childrens: I) -> Self
pub fn attribute(self, attribute: impl Into<String>) -> Self
pub fn attributes<I, S>(self, attributes: I) -> Self
pub fn document_url(self, document_url: impl Into<String>) -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn public_id(self, public_id: impl Into<String>) -> Self
pub fn system_id(self, system_id: impl Into<String>) -> Self
pub fn internal_subset(self, internal_subset: impl Into<String>) -> Self
pub fn xml_version(self, xml_version: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn value(self, value: impl Into<String>) -> Self
pub fn pseudo_type(self, pseudo_type: impl Into<PseudoType>) -> Self
pub fn pseudo_identifier(self, pseudo_identifier: impl Into<String>) -> Self
pub fn shadow_root_type( self, shadow_root_type: impl Into<ShadowRootType>, ) -> Self
pub fn frame_id(self, frame_id: impl Into<FrameId>) -> Self
pub fn content_document(self, content_document: impl Into<Node>) -> Self
pub fn shadow_root(self, shadow_root: impl Into<Node>) -> Self
pub fn shadow_roots<I, S>(self, shadow_roots: I) -> Self
pub fn template_content(self, template_content: impl Into<Node>) -> Self
pub fn pseudo_element(self, pseudo_element: impl Into<Node>) -> Self
pub fn pseudo_elements<I, S>(self, pseudo_elements: I) -> Self
pub fn distributed_node(self, distributed_node: impl Into<BackendNode>) -> Self
pub fn distributed_nodes<I, S>(self, distributed_nodes: I) -> Self
pub fn is_svg(self, is_svg: impl Into<bool>) -> Self
pub fn compatibility_mode( self, compatibility_mode: impl Into<CompatibilityMode>, ) -> Self
pub fn assigned_slot(self, assigned_slot: impl Into<BackendNode>) -> Self
pub fn is_scrollable(self, is_scrollable: impl Into<bool>) -> Self
pub fn build(self) -> Result<Node, String>
Trait Implementations§
Source§impl Clone for NodeBuilder
impl Clone for NodeBuilder
Source§fn clone(&self) -> NodeBuilder
fn clone(&self) -> NodeBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for NodeBuilder
impl Default for NodeBuilder
Source§fn default() -> NodeBuilder
fn default() -> NodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeBuilder
impl RefUnwindSafe for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Unpin for NodeBuilder
impl UnwindSafe for NodeBuilder
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