pub struct LinkDefinition<T = ()> {
pub label: Vec<Inline<T>>,
pub destination: String,
pub title: Option<String>,
pub user_data: T,
}Expand description
Link reference definition (GFM) with a label, destination and optional title.
Fields§
§label: Vec<Inline<T>>Link label (acts as the identifier).
destination: StringLink URL (absolute or relative) or email address.
title: Option<String>Optional title (for links and images).
user_data: TUser-defined data associated with this link definition
Trait Implementations§
Source§impl<T: Clone> Clone for LinkDefinition<T>
impl<T: Clone> Clone for LinkDefinition<T>
Source§fn clone(&self) -> LinkDefinition<T>
fn clone(&self) -> LinkDefinition<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LinkDefinition<T>
impl<T: Debug> Debug for LinkDefinition<T>
Source§impl<'de, T> Deserialize<'de> for LinkDefinition<T>where
T: Deserialize<'de> + Default,
impl<'de, T> Deserialize<'de> for LinkDefinition<T>where
T: Deserialize<'de> + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for LinkDefinition<T>
impl<T: PartialEq> PartialEq for LinkDefinition<T>
Source§impl<T> Serialize for LinkDefinition<T>where
T: Serialize,
impl<T> Serialize for LinkDefinition<T>where
T: Serialize,
Source§impl<T> StripData<T> for LinkDefinition<T>
impl<T> StripData<T> for LinkDefinition<T>
Source§type StrippedType = LinkDefinition
type StrippedType = LinkDefinition
The type without user data
Source§fn strip_data(self) -> Self::StrippedType
fn strip_data(self) -> Self::StrippedType
Remove user data from this AST node
impl<T> StructuralPartialEq for LinkDefinition<T>
Auto Trait Implementations§
impl<T> Freeze for LinkDefinition<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinkDefinition<T>where
T: RefUnwindSafe,
impl<T> Send for LinkDefinition<T>where
T: Send,
impl<T> Sync for LinkDefinition<T>where
T: Sync,
impl<T> Unpin for LinkDefinition<T>where
T: Unpin,
impl<T> UnwindSafe for LinkDefinition<T>where
T: UnwindSafe,
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