pub struct WikiLink {
pub target: String,
pub heading: Option<String>,
pub alias: Option<String>,
pub embed: bool,
}Expand description
A parsed [[target#heading|alias]].
Fields§
§target: StringThe link target, trimmed, minus any #heading and |alias.
heading: Option<String>The text after the first # in the target part, trimmed.
alias: Option<String>The text after the first |, trimmed.
embed: boolWhether the link was written as an embed, ![[...]].
Trait Implementations§
impl Eq for WikiLink
impl StructuralPartialEq for WikiLink
Auto Trait Implementations§
impl Freeze for WikiLink
impl RefUnwindSafe for WikiLink
impl Send for WikiLink
impl Sync for WikiLink
impl Unpin for WikiLink
impl UnsafeUnpin for WikiLink
impl UnwindSafe for WikiLink
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