pub struct Citation {
pub number: u32,
pub text: Option<String>,
pub target: Option<String>,
pub raw: String,
}Expand description
A numbered entry under a legacy v0.1 # Citations heading.
v0.2 supersedes the body citations list with the sources frontmatter field
and footnote attribution; consumers MAY still parse this form for
v0.1 documents.
Fields§
§number: u32The citation number (the n in [n]).
text: Option<String>The link text, if the entry is a markdown link.
target: Option<String>The cited URL/target, if present.
raw: StringThe full raw text of the entry after the [n] marker.
Trait Implementations§
impl Eq for Citation
impl StructuralPartialEq for Citation
Auto Trait Implementations§
impl Freeze for Citation
impl RefUnwindSafe for Citation
impl Send for Citation
impl Sync for Citation
impl Unpin for Citation
impl UnsafeUnpin for Citation
impl UnwindSafe for Citation
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