pub struct LinkDefinition {
pub label: Vec<Inline>,
pub destination: String,
pub title: Option<String>,
}Expand description
Link reference definition (GFM) with a label, destination and optional title.
Fields§
§label: Vec<Inline>Link label (acts as the identifier).
destination: StringLink URL (absolute or relative) or email address.
title: Option<String>Optional title (for links and images).
Trait Implementations§
Source§impl Clone for LinkDefinition
impl Clone for LinkDefinition
Source§fn clone(&self) -> LinkDefinition
fn clone(&self) -> LinkDefinition
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 Debug for LinkDefinition
impl Debug for LinkDefinition
Source§impl<'de> Deserialize<'de> for LinkDefinition
impl<'de> Deserialize<'de> for LinkDefinition
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 PartialEq for LinkDefinition
impl PartialEq for LinkDefinition
Source§impl Serialize for LinkDefinition
impl Serialize for LinkDefinition
Source§impl<T: Default> WithData<T> for LinkDefinition
impl<T: Default> WithData<T> for LinkDefinition
Source§type WithDataType = LinkDefinition<T>
type WithDataType = LinkDefinition<T>
The type with user data attached
Source§fn with_data(self, data: T) -> Self::WithDataType
fn with_data(self, data: T) -> Self::WithDataType
Add user data to this AST node
Source§fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
Add default user data to this AST node
impl StructuralPartialEq for LinkDefinition
Auto Trait Implementations§
impl Freeze for LinkDefinition
impl RefUnwindSafe for LinkDefinition
impl Send for LinkDefinition
impl Sync for LinkDefinition
impl Unpin for LinkDefinition
impl UnwindSafe for LinkDefinition
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