pub enum Target<'a> {
Page {
slug: &'a str,
fragment: Option<&'a str>,
},
Node {
id: &'a str,
fragment: Option<&'a str>,
},
Object {
scheme: &'a str,
kind: &'a str,
id: &'a str,
},
Other(&'a str),
}Expand description
What a link points at.
Variants§
Page
A page of the same space, by slug, with an optional #fragment.
Node
A Hive node by id (hive:n_…), with an optional #heading-slug.
Object
An object addressed <scheme>:<kind>/<id>, e.g. emspace:tasks/01a1….
Other(&'a str)
Anything else: a URL, a relative path, an anchor.
Trait Implementations§
impl<'a> Eq for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Forget for Target<'a>
impl<'a> Freeze for Target<'a>
impl<'a> Move for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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