pub struct ExtractionOutput {
pub nodes: Vec<SchemaNode>,
pub warnings: Vec<ExtractionWarning>,
}Expand description
Output from a single extractor run.
Contains the extracted nodes and any non-fatal warnings encountered during extraction.
§Examples
use schemaorg_rs::extraction::{Extractor, JsonLdExtractor};
let output = JsonLdExtractor.extract("<html></html>").unwrap();
assert!(output.nodes.is_empty());Fields§
§nodes: Vec<SchemaNode>Extracted structured data nodes.
warnings: Vec<ExtractionWarning>Non-fatal warnings encountered during extraction.
Trait Implementations§
Source§impl Clone for ExtractionOutput
impl Clone for ExtractionOutput
Source§fn clone(&self) -> ExtractionOutput
fn clone(&self) -> ExtractionOutput
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 ExtractionOutput
impl Debug for ExtractionOutput
Source§impl Default for ExtractionOutput
impl Default for ExtractionOutput
Source§fn default() -> ExtractionOutput
fn default() -> ExtractionOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtractionOutput
impl<'de> Deserialize<'de> for ExtractionOutput
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 ExtractionOutput
impl PartialEq for ExtractionOutput
Source§fn eq(&self, other: &ExtractionOutput) -> bool
fn eq(&self, other: &ExtractionOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtractionOutput
impl Serialize for ExtractionOutput
impl StructuralPartialEq for ExtractionOutput
Auto Trait Implementations§
impl Freeze for ExtractionOutput
impl RefUnwindSafe for ExtractionOutput
impl Send for ExtractionOutput
impl Sync for ExtractionOutput
impl Unpin for ExtractionOutput
impl UnsafeUnpin for ExtractionOutput
impl UnwindSafe for ExtractionOutput
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