pub struct Backlink {
pub source: PathBuf,
pub site: LinkSite,
pub by_id: bool,
}Expand description
An inbound reference to a document, as discovered by the census: which
document links here (source), where in it
(site), and whether the link is by stable id (survives
moves) or by path (rewritten on a move). The inverse of a forward
CensusEntry — the marquee payoff of the identity layer (DESIGN §6).
Fields§
§source: PathBufThe document that links to the target.
site: LinkSiteWhere in source the link is written.
by_id: booltrue when the link is a prov:<id> reference (location-independent),
false when it is a path.
Trait Implementations§
impl Eq for Backlink
impl StructuralPartialEq for Backlink
Auto Trait Implementations§
impl Freeze for Backlink
impl RefUnwindSafe for Backlink
impl Send for Backlink
impl Sync for Backlink
impl Unpin for Backlink
impl UnsafeUnpin for Backlink
impl UnwindSafe for Backlink
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.