pub enum LinkKind {
Spec,
Plan,
Issue,
Pr,
Branch,
Path,
Other,
}Expand description
What a link points at. Generic to any VCS: a GitHub pull request and a
GitLab merge request are both Pr.
Variants§
Implementations§
Source§impl LinkKind
impl LinkKind
Sourcepub fn for_target(target: &str) -> Self
pub fn for_target(target: &str) -> Self
Classify a bare target by its shape: a target containing /pull/
reads Pr, everything else Path. Nothing decides on the kind, so a
miss costs a drawn word - and the key is GitHub’s own path, so a
GitLab merge request reads Path until a shape names it.
Trait Implementations§
impl Copy for LinkKind
Source§impl<'de> Deserialize<'de> for LinkKind
impl<'de> Deserialize<'de> for LinkKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LinkKind
impl StructuralPartialEq for LinkKind
Auto Trait Implementations§
impl Freeze for LinkKind
impl RefUnwindSafe for LinkKind
impl Send for LinkKind
impl Sync for LinkKind
impl Unpin for LinkKind
impl UnsafeUnpin for LinkKind
impl UnwindSafe for LinkKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.