Struct NodeLink
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.
Trait Implementations
impl Clone for NodeLink
fn clone(&self) -> NodeLink
impl Debug for NodeLink
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeLink
fn default() -> NodeLink
impl Eq for NodeLink
impl PartialEq for NodeLink
fn eq(&self, other: &NodeLink) -> 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<T> Any for NodeLink
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NodeLink
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NodeLink
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NodeLink
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NodeLink
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NodeLink
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NodeLink
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NodeLink
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NodeLink
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>