Enum scraper_main::Value
source · Variants§
Implementations§
source§impl Value
impl Value
pub fn is_something(&self) -> bool
pub fn as_node(&self) -> Result<&Node, Error>
pub fn is_node(&self) -> bool
pub fn into_node(self) -> Result<Node, Error>
pub fn boolean(&self) -> Result<bool, Error>
pub fn number(&self) -> Result<f64, Error>
pub fn as_string(&self) -> Result<&String, Error>
pub fn string(self) -> Result<String, Error>
sourcepub fn convert_to_string(self) -> Result<String, Error>
pub fn convert_to_string(self) -> Result<String, Error>
Change non-string Value
to a String