pub struct WikiLink {
pub target: String,
pub display: Option<String>,
pub is_full_path: bool,
pub has_md_extension: bool,
pub location: (PathBuf, u32, u32),
}Expand description
A wiki-link reference inside the store: [[target]] or [[target|display]].
target is always recorded as written; is_full_path
flags whether it’s a full store-relative path (the doctrine) versus a
short-form (a validation error).
Fields§
§target: StringThe link target as written, without the [[ ]] and without |display.
display: Option<String>The optional |display text override.
is_full_path: boolTrue when target is a full store-relative path (contains a / and
resolves under a known layer); false for short-form targets like
sarah-chen — which validate reports as WIKI_LINK_SHORT_FORM.
has_md_extension: boolTrue when target carries a trailing .md extension — validate warns
WIKI_LINK_HAS_EXTENSION; the canonical writers emit the bare form.
location: (PathBuf, u32, u32)Where the link appears: (file, line, col), 1-based line and column.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.