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: String

The URL for the link destination or image source.

title: String

The title for the link or image.

Note this field is used for the title attribute by the HTML formatter even for images; alt text is supplied in the image inline text.

Implementations

impl NodeLink

fn new(url: impl Into<String>, title: impl Into<String>) -> Self

Create a new NodeLink with 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

impl StructuralPartialEq for NodeLink

Auto Trait Implementations

impl Freeze for NodeLink

impl RefUnwindSafe for NodeLink

impl Send for NodeLink

impl Sync for NodeLink

impl Unpin for NodeLink

impl UnsafeUnpin for NodeLink

impl UnwindSafe for NodeLink

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeLink where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeLink where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeLink where T: ?Sized,

impl<T> BorrowMut<T> for NodeLink where T: ?Sized,

impl<T> CloneToUninit for NodeLink where T: Clone,

impl<T> From<T> for NodeLink

impl<T> ToOwned for NodeLink where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeLink where S: Simd,

impl<T, U> Into<U> for NodeLink where U: From<T>,

impl<T, U> TryFrom<U> for NodeLink where U: Into<T>,

impl<T, U> TryInto<U> for NodeLink where U: TryFrom<T>,