pub struct NodeDiagnostic {
pub selector: String,
pub tag: String,
pub id: Option<String>,
pub classes: Vec<String>,
pub text_len: usize,
pub link_density: f64,
}Expand description
Stable summary of a DOM node used in diagnostics.
Fields§
§selector: StringCSS-like selector for the node.
tag: StringHTML tag name.
id: Option<String>Element id, if present.
classes: Vec<String>Element classes.
text_len: usizeVisible text length under the node.
link_density: f64Link text ratio under the node.
Trait Implementations§
Source§impl Clone for NodeDiagnostic
impl Clone for NodeDiagnostic
Source§fn clone(&self) -> NodeDiagnostic
fn clone(&self) -> NodeDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeDiagnostic
impl Debug for NodeDiagnostic
Source§impl PartialEq for NodeDiagnostic
impl PartialEq for NodeDiagnostic
Source§impl Serialize for NodeDiagnostic
impl Serialize for NodeDiagnostic
impl StructuralPartialEq for NodeDiagnostic
Auto Trait Implementations§
impl Freeze for NodeDiagnostic
impl RefUnwindSafe for NodeDiagnostic
impl Send for NodeDiagnostic
impl Sync for NodeDiagnostic
impl Unpin for NodeDiagnostic
impl UnsafeUnpin for NodeDiagnostic
impl UnwindSafe for NodeDiagnostic
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