pub trait SpeakableSpecificationTrait {
// Required methods
fn get_css_selector(&self) -> &[CssSelectorProperty];
fn take_css_selector(&mut self) -> Vec<CssSelectorProperty>;
fn get_xpath(&self) -> &[XpathProperty];
fn take_xpath(&mut self) -> Vec<XpathProperty>;
}
Expand description
This trait is for properties from https://schema.org/SpeakableSpecification.
Required Methods§
sourcefn get_css_selector(&self) -> &[CssSelectorProperty]
fn get_css_selector(&self) -> &[CssSelectorProperty]
Get https://schema.org/cssSelector from Self
as borrowed slice.
sourcefn take_css_selector(&mut self) -> Vec<CssSelectorProperty>
fn take_css_selector(&mut self) -> Vec<CssSelectorProperty>
Take https://schema.org/cssSelector from Self
as owned vector.
sourcefn get_xpath(&self) -> &[XpathProperty]
fn get_xpath(&self) -> &[XpathProperty]
Get https://schema.org/xpath from Self
as borrowed slice.
sourcefn take_xpath(&mut self) -> Vec<XpathProperty>
fn take_xpath(&mut self) -> Vec<XpathProperty>
Take https://schema.org/xpath from Self
as owned vector.