pub struct Definition {
pub position: Option<Position>,
pub url: String,
pub title: Option<String>,
pub identifier: String,
pub label: Option<String>,
}Expand description
Definition.
> | [a]: b
^^^^^^Fields§
§position: Option<Position>Positional info.
url: StringURL to the referenced resource.
title: Option<String>Advisory info for the resource, such as something that would be appropriate for a tooltip.
identifier: StringValue that can match another node.
identifier is a source value: character escapes and character references
are not parsed.
Its value must be normalized.
label: Option<String>label is a string value: it works just like title on a link or a
lang on code: character escapes and character references are parsed.
To normalize a value, collapse markdown whitespace ([\t\n\r ]+) to a
space, trim the optional initial and/or final space, and perform
case-folding.
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
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 Definition
impl Debug for Definition
Source§impl PartialEq for Definition
impl PartialEq for Definition
impl Eq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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