#[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
Trait Implementations§
source§impl PartialEq<Anchor> for Anchor
impl PartialEq<Anchor> for Anchor
source§impl RenderElement for Anchor
impl RenderElement for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnwindSafe for Anchor
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