pub struct Element {
pub selector: String,
pub measured: BTreeMap<String, Value>,
}Expand description
One element a finding names, as the browser saw it.
The selector is the only field every rule produces; a rule that measured more — how far past the viewport an element reached, what its position was — carries it here rather than in prose, so the report can render it without knowing which rule it came from.
Fields§
§selector: StringA selector a person can paste into the browser’s console.
measured: BTreeMap<String, Value>Whatever else the rule measured about it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Element
impl<'de> Deserialize<'de> for Element
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin 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