pub struct NodeBuilder { /* private fields */ }
Implementations§
Source§impl NodeBuilder
impl NodeBuilder
pub fn node_id(self, node_id: impl Into<NodeId>) -> NodeBuilder
pub fn parent_id(self, parent_id: impl Into<NodeId>) -> NodeBuilder
pub fn backend_node_id( self, backend_node_id: impl Into<BackendNodeId>, ) -> NodeBuilder
pub fn node_type(self, node_type: impl Into<i64>) -> NodeBuilder
pub fn node_name(self, node_name: impl Into<String>) -> NodeBuilder
pub fn local_name(self, local_name: impl Into<String>) -> NodeBuilder
pub fn node_value(self, node_value: impl Into<String>) -> NodeBuilder
pub fn child_node_count(self, child_node_count: impl Into<i64>) -> NodeBuilder
pub fn children(self, children: impl Into<Node>) -> NodeBuilder
pub fn childrens<I, S>(self, childrens: I) -> NodeBuilder
pub fn attribute(self, attribute: impl Into<String>) -> NodeBuilder
pub fn attributes<I, S>(self, attributes: I) -> NodeBuilder
pub fn document_url(self, document_url: impl Into<String>) -> NodeBuilder
pub fn base_url(self, base_url: impl Into<String>) -> NodeBuilder
pub fn public_id(self, public_id: impl Into<String>) -> NodeBuilder
pub fn system_id(self, system_id: impl Into<String>) -> NodeBuilder
pub fn internal_subset(self, internal_subset: impl Into<String>) -> NodeBuilder
pub fn xml_version(self, xml_version: impl Into<String>) -> NodeBuilder
pub fn name(self, name: impl Into<String>) -> NodeBuilder
pub fn value(self, value: impl Into<String>) -> NodeBuilder
pub fn pseudo_type(self, pseudo_type: impl Into<PseudoType>) -> NodeBuilder
pub fn pseudo_identifier( self, pseudo_identifier: impl Into<String>, ) -> NodeBuilder
pub fn shadow_root_type( self, shadow_root_type: impl Into<ShadowRootType>, ) -> NodeBuilder
pub fn frame_id(self, frame_id: impl Into<FrameId>) -> NodeBuilder
pub fn content_document(self, content_document: impl Into<Node>) -> NodeBuilder
pub fn shadow_root(self, shadow_root: impl Into<Node>) -> NodeBuilder
pub fn shadow_roots<I, S>(self, shadow_roots: I) -> NodeBuilder
pub fn template_content(self, template_content: impl Into<Node>) -> NodeBuilder
pub fn pseudo_element(self, pseudo_element: impl Into<Node>) -> NodeBuilder
pub fn pseudo_elements<I, S>(self, pseudo_elements: I) -> NodeBuilder
pub fn distributed_node( self, distributed_node: impl Into<BackendNode>, ) -> NodeBuilder
pub fn distributed_nodes<I, S>(self, distributed_nodes: I) -> NodeBuilder
pub fn is_svg(self, is_svg: impl Into<bool>) -> NodeBuilder
pub fn compatibility_mode( self, compatibility_mode: impl Into<CompatibilityMode>, ) -> NodeBuilder
pub fn assigned_slot(self, assigned_slot: impl Into<BackendNode>) -> NodeBuilder
pub fn is_scrollable(self, is_scrollable: impl Into<bool>) -> NodeBuilder
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 copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more