Struct sanitize_html::rules::Element
source · pub struct Element {
pub name: String,
pub attributes: HashMap<String, Pattern>,
pub mandatory_attributes: HashMap<String, String>,
}
Expand description
structure to describe HTML element
Fields§
§name: String
name of an element
attributes: HashMap<String, Pattern>
List of allowed attributes
mandatory_attributes: HashMap<String, String>
List of mandatory atributes and their values. These attributes will be forcibly added to element.
Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl !RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more