Trait IHTMLDataProvider

Source
pub trait IHTMLDataProvider: Send + Sync {
    // Required methods
    fn get_id(&self) -> &str;
    fn is_applicable(&self, language_id: &str) -> bool;
    fn provide_tags(&self) -> &Vec<ITagData>;
    fn provide_attributes(
        &self,
        tag: &str,
        content: &HTMLDataProviderContent<'_>,
    ) -> Vec<&IAttributeData>;
    fn provide_values(&self, tag: &str, attribute: &str) -> Vec<&IValueData>;
}
Expand description

To implement that the data provider can provide information to the HTMLDataManager

Required Methods§

Source

fn get_id(&self) -> &str

The ID of the data provider, which cannot be duplicated, note that the ID of the built-in data provider is “html5”

Source

fn is_applicable(&self, language_id: &str) -> bool

Source

fn provide_tags(&self) -> &Vec<ITagData>

Source

fn provide_attributes( &self, tag: &str, content: &HTMLDataProviderContent<'_>, ) -> Vec<&IAttributeData>

Source

fn provide_values(&self, tag: &str, attribute: &str) -> Vec<&IValueData>

Implementors§