#[non_exhaustive]pub struct Data {
pub data_map: DataMap,
pub value: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <data>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_map: DataMap
§value: Option<Cow<'static, str>>
Machine-readable value
Trait Implementations§
source§impl PartialEq<Data> for Data
impl PartialEq<Data> for Data
source§impl RenderElement for Data
impl RenderElement for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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