Struct html_sys::embedded::ImageMapArea
source · #[non_exhaustive]pub struct ImageMapArea {
pub data_map: DataMap,
pub alt: Option<Cow<'static, str>>,
pub coords: Option<Cow<'static, str>>,
pub shape: Option<Cow<'static, str>>,
pub href: Option<Cow<'static, str>>,
pub target: Option<Cow<'static, str>>,
pub download: Option<Cow<'static, str>>,
pub ping: Option<Cow<'static, str>>,
pub rel: Option<Cow<'static, str>>,
pub referrerpolicy: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <area>
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
§alt: Option<Cow<'static, str>>
Replacement text for use when images are not available
coords: Option<Cow<'static, str>>
Coordinates for the shape to be created in an image map
shape: Option<Cow<'static, str>>
The kind of shape to be created in an image map
href: Option<Cow<'static, str>>
Address of the hyperlink
target: Option<Cow<'static, str>>
Navigable for hyperlink navigation
download: Option<Cow<'static, str>>
Whether to download the resource instead of navigating to it, and its filename if so
ping: Option<Cow<'static, str>>
URLs to ping
rel: Option<Cow<'static, str>>
Relationship between the location in the document containing the hyperlink and the destination resource
referrerpolicy: Option<Cow<'static, str>>
Referrer policy for fetches initiated by the element
Trait Implementations§
source§impl Clone for ImageMapArea
impl Clone for ImageMapArea
source§fn clone(&self) -> ImageMapArea
fn clone(&self) -> ImageMapArea
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageMapArea
impl Debug for ImageMapArea
source§impl Default for ImageMapArea
impl Default for ImageMapArea
source§fn default() -> ImageMapArea
fn default() -> ImageMapArea
Returns the “default value” for a type. Read more
source§impl Deref for ImageMapArea
impl Deref for ImageMapArea
source§impl DerefMut for ImageMapArea
impl DerefMut for ImageMapArea
source§impl Display for ImageMapArea
impl Display for ImageMapArea
source§impl PartialEq<ImageMapArea> for ImageMapArea
impl PartialEq<ImageMapArea> for ImageMapArea
source§fn eq(&self, other: &ImageMapArea) -> bool
fn eq(&self, other: &ImageMapArea) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RenderElement for ImageMapArea
impl RenderElement for ImageMapArea
impl StructuralPartialEq for ImageMapArea
Auto Trait Implementations§
impl RefUnwindSafe for ImageMapArea
impl Send for ImageMapArea
impl Sync for ImageMapArea
impl Unpin for ImageMapArea
impl UnwindSafe for ImageMapArea
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