pub enum LinkTargetKind {
InternalPage(PageId),
AttachmentPath(PathBuf),
ExternalUrl(String),
Unknown(String),
}Expand description
Classification of a raw link target.
Variants§
InternalPage(PageId)
Resolved to an internal page id.
AttachmentPath(PathBuf)
Resolved to an attachment file path in the knowledge base.
ExternalUrl(String)
Resolved to an external URL/scheme target.
Unknown(String)
Could not classify target.
Trait Implementations§
Source§impl Clone for LinkTargetKind
impl Clone for LinkTargetKind
Source§fn clone(&self) -> LinkTargetKind
fn clone(&self) -> LinkTargetKind
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 LinkTargetKind
impl Debug for LinkTargetKind
Source§impl PartialEq for LinkTargetKind
impl PartialEq for LinkTargetKind
impl Eq for LinkTargetKind
impl StructuralPartialEq for LinkTargetKind
Auto Trait Implementations§
impl Freeze for LinkTargetKind
impl RefUnwindSafe for LinkTargetKind
impl Send for LinkTargetKind
impl Sync for LinkTargetKind
impl Unpin for LinkTargetKind
impl UnsafeUnpin for LinkTargetKind
impl UnwindSafe for LinkTargetKind
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