Struct NodeLink
#[non_exhaustive]
pub struct NodeLink { pub url: String, pub title: String }
The details of a link's destination, or an image's source.
Fields
url: StringThe URL for the link destination or image source.
title: StringThe title for the link or image.
Note this field is used for the
titleattribute by the HTML formatter even for images;alttext is supplied in the image inline text.
Implementations
impl NodeLink
fn new(url: impl Into<String>, title: impl Into<String>) -> SelfCreate a new
NodeLinkwith the given URL and title.
Trait Implementations
impl Clone for NodeLink
fn clone(&self) -> Self
impl Debug for NodeLink
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeLink
fn default() -> Self
impl Eq for NodeLink
impl PartialEq for NodeLink
fn eq(&self, other: &Self) -> bool