pub enum ExternalObjectKind {
Issue,
PullRequest,
Other(String),
}Expand description
Category of external object. The provider table maps each kind to a number space, so a kind separates identity only where the provider numbers it separately.
Variants§
Issue
An issue or ticket.
PullRequest
A pull request or merge request.
Other(String)
Another provider object category, named in lowercase.
Implementations§
Source§impl ExternalObjectKind
impl ExternalObjectKind
Sourcepub fn parse(name: &str) -> Self
pub fn parse(name: &str) -> Self
Provider-neutral kind, folded by the one kind normalizer: case, separators and one plural
ending are ignored, so pull_requests, PRs and merge-request are PullRequest,
issues is Issue and Work Items is {"Other":"workitem"}. Canonicalization then maps
the name onto the provider’s own kind table.
Trait Implementations§
Source§impl Clone for ExternalObjectKind
impl Clone for ExternalObjectKind
Source§impl Debug for ExternalObjectKind
impl Debug for ExternalObjectKind
Source§impl<'de> Deserialize<'de> for ExternalObjectKind
impl<'de> Deserialize<'de> for ExternalObjectKind
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 ExternalObjectKind
Source§impl Hash for ExternalObjectKind
impl Hash for ExternalObjectKind
Source§impl Ord for ExternalObjectKind
impl Ord for ExternalObjectKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExternalObjectKind
impl PartialEq for ExternalObjectKind
Source§impl PartialOrd for ExternalObjectKind
impl PartialOrd for ExternalObjectKind
Source§impl Serialize for ExternalObjectKind
impl Serialize for ExternalObjectKind
impl StructuralPartialEq for ExternalObjectKind
Auto Trait Implementations§
impl Freeze for ExternalObjectKind
impl RefUnwindSafe for ExternalObjectKind
impl Send for ExternalObjectKind
impl Sync for ExternalObjectKind
impl Unpin for ExternalObjectKind
impl UnsafeUnpin for ExternalObjectKind
impl UnwindSafe for ExternalObjectKind
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