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§
Sourcefn get_id(&self) -> &str
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”