pub enum XrefTarget {
InApp(ItemTarget),
Web(String),
Mention {
login: String,
url: Option<String>,
},
Commit {
sha: String,
url: Option<String>,
},
Chip {
kind: ChipKind,
name: String,
},
}Variants§
InApp(ItemTarget)
An item of the repository’s linked sources, or a local note.
Web(String)
A page on the host: open in the browser (after the link confirm).
Mention
@login; the profile address when the host has one.
Commit
A commit id; whether it exists in the repository is the caller’s call.
Chip
A label or milestone shown as a chip, not a link.
Trait Implementations§
Source§impl Clone for XrefTarget
impl Clone for XrefTarget
Source§impl Debug for XrefTarget
impl Debug for XrefTarget
impl Eq for XrefTarget
Source§impl PartialEq for XrefTarget
impl PartialEq for XrefTarget
impl StructuralPartialEq for XrefTarget
Auto Trait Implementations§
impl Forget for XrefTarget
impl Freeze for XrefTarget
impl Move for XrefTarget
impl RefUnwindSafe for XrefTarget
impl Send for XrefTargetwhere
RawVecInner: Send,
impl Sync for XrefTargetwhere
RawVecInner: Sync,
impl Unpin for XrefTarget
impl UnsafeUnpin for XrefTarget
impl UnwindSafe for XrefTargetwhere
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.