Struct webpage::html::HTML [−][src]
pub struct HTML { pub title: Option<String>, pub description: Option<String>, pub url: Option<String>, pub feed: Option<String>, pub language: Option<String>, pub text_content: String, pub meta: HashMap<String, String>, pub opengraph: Opengraph, pub schema_org: Vec<SchemaOrg>, }
Fields
title: Option<String>
description: Option<String>
url: Option<String>
feed: Option<String>
language: Option<String>
text_content: String
meta: HashMap<String, String>
opengraph: Opengraph
schema_org: Vec<SchemaOrg>
Methods
impl HTML
[src]
impl HTML
pub fn from_dom(dom: RcDom, url: Option<String>) -> Self
[src]
pub fn from_dom(dom: RcDom, url: Option<String>) -> Self
pub fn from_file(path: &str, url: Option<String>) -> Result<Self, Error>
[src]
pub fn from_file(path: &str, url: Option<String>) -> Result<Self, Error>
pub fn from_string(html: String, url: Option<String>) -> Result<Self, Error>
[src]
pub fn from_string(html: String, url: Option<String>) -> Result<Self, Error>