#[non_exhaustive]pub struct Anchor {
pub data_map: DataMap,
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 hreflang: Option<Cow<'static, str>>,
pub type_: Option<Cow<'static, str>>,
pub referrerpolicy: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <a>
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
§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
hreflang: Option<Cow<'static, str>>
Language of the linked resource
type_: Option<Cow<'static, str>>
Hint for the type of the referenced resource
referrerpolicy: Option<Cow<'static, str>>
Referrer policy for fetches initiated by the element