pub struct XrefContext {
pub family: Option<ApiFamily>,
pub web_base: String,
pub project: String,
pub repo_links: RefContext,
pub local_notes: Vec<String>,
}Expand description
Where the text came from and what the repository links to.
Fields§
§family: Option<ApiFamily>The host (flavor) of the text; None = only the repository’s links
and plain URLs resolve.
web_base: Stringhttps://host of that host (instance root; never the API root).
project: StringThe project path on that host (owner/repo, group/proj).
repo_links: RefContextThe repository’s linked ISSUES and PULLS sources.
local_notes: Vec<String>Local notes: names of the Markdown notes (for [[wikilinks]]).
Trait Implementations§
Source§impl Clone for XrefContext
impl Clone for XrefContext
Source§impl Debug for XrefContext
impl Debug for XrefContext
Source§impl Default for XrefContext
impl Default for XrefContext
impl Eq for XrefContext
Source§impl PartialEq for XrefContext
impl PartialEq for XrefContext
impl StructuralPartialEq for XrefContext
Auto Trait Implementations§
impl Forget for XrefContext
impl Freeze for XrefContext
impl Move for XrefContext
impl RefUnwindSafe for XrefContext
impl Send for XrefContext
impl Sync for XrefContext
impl Unpin for XrefContext
impl UnsafeUnpin for XrefContext
impl UnwindSafe for XrefContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.