pub struct JsonLdExtractor;Expand description
JSON-LD extractor
Implementations§
Source§impl JsonLdExtractor
impl JsonLdExtractor
Sourcepub fn extract_by_type(&self, html: &str, schema_type: &str) -> Vec<Value>
pub fn extract_by_type(&self, html: &str, schema_type: &str) -> Vec<Value>
Extract JSON-LD of a specific type
Sourcepub fn extract_faqs(&self, html: &str) -> Vec<FaqItem>
pub fn extract_faqs(&self, html: &str) -> Vec<FaqItem>
Extract FAQs (schema.org/FAQPage)
Sourcepub fn extract_howtos(&self, html: &str) -> Vec<HowToItem>
pub fn extract_howtos(&self, html: &str) -> Vec<HowToItem>
Extract HowTos (schema.org/HowTo)
Sourcepub fn extract_articles(&self, html: &str) -> Vec<ArticleSchema>
pub fn extract_articles(&self, html: &str) -> Vec<ArticleSchema>
Extract articles (schema.org/Article)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonLdExtractor
impl RefUnwindSafe for JsonLdExtractor
impl Send for JsonLdExtractor
impl Sync for JsonLdExtractor
impl Unpin for JsonLdExtractor
impl UnwindSafe for JsonLdExtractor
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