pub struct StructuredDataGraph {
pub nodes: Vec<SchemaNode>,
pub warnings: Vec<ExtractionWarning>,
}Expand description
A unified graph of all structured data extracted from an HTML document.
Combines results from JSON-LD, Microdata, and RDFa Lite extractors.
Each node retains its SourceFormat so
callers can distinguish which markup produced it.
§Examples
use schemaorg_rs::extract_all;
let graph = extract_all("<html></html>").unwrap();
assert!(graph.nodes.is_empty());
assert!(graph.warnings.is_empty());Fields§
§nodes: Vec<SchemaNode>All extracted structured data nodes.
warnings: Vec<ExtractionWarning>Non-fatal warnings from all extractors.
Trait Implementations§
Source§impl Clone for StructuredDataGraph
impl Clone for StructuredDataGraph
Source§fn clone(&self) -> StructuredDataGraph
fn clone(&self) -> StructuredDataGraph
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 StructuredDataGraph
impl Debug for StructuredDataGraph
Source§impl<'de> Deserialize<'de> for StructuredDataGraph
impl<'de> Deserialize<'de> for StructuredDataGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StructuredDataGraph
impl PartialEq for StructuredDataGraph
Source§fn eq(&self, other: &StructuredDataGraph) -> bool
fn eq(&self, other: &StructuredDataGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredDataGraph
impl Serialize for StructuredDataGraph
impl StructuralPartialEq for StructuredDataGraph
Auto Trait Implementations§
impl Freeze for StructuredDataGraph
impl RefUnwindSafe for StructuredDataGraph
impl Send for StructuredDataGraph
impl Sync for StructuredDataGraph
impl Unpin for StructuredDataGraph
impl UnsafeUnpin for StructuredDataGraph
impl UnwindSafe for StructuredDataGraph
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