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 XrefContextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<KnownCard>: Freeze,
impl Move for XrefContext
impl RefUnwindSafe for XrefContext
impl Send for XrefContextwhere
RawVecInner: Send,
impl Sync for XrefContextwhere
RawVecInner: Sync,
impl Unpin for XrefContext
impl UnsafeUnpin for XrefContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<KnownCard>: UnsafeUnpin,
impl UnwindSafe for XrefContextwhere
RawVecInner: UnwindSafe,
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§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.