pub struct ObjectKey {
pub family: ExternalProvider,
pub instance: String,
pub namespace: Option<String>,
pub space: Option<String>,
pub id: String,
}Expand description
What decides whether two records name one external object.
It is the provider family (Gitea and Forgejo are one family), instance, namespace, the number space of the kind in the provider table, and the normalized identifier. Kinds sharing a number space (GitHub issues, pull requests and discussions; GitLab issues, incidents and tasks; every Jira or Linear issue type) share one key.
Fields§
§family: ExternalProviderProvider family.
instance: StringCanonical host[:port].
namespace: Option<String>Canonical namespace, where the provider scopes identifiers.
space: Option<String>Number space of the kind; None when the provider does not accept the kind.
id: StringNormalized identifier.
Trait Implementations§
impl Eq for ObjectKey
Source§impl Ord for ObjectKey
impl Ord for ObjectKey
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 PartialOrd for ObjectKey
impl PartialOrd for ObjectKey
impl StructuralPartialEq for ObjectKey
Auto Trait Implementations§
impl Freeze for ObjectKey
impl RefUnwindSafe for ObjectKey
impl Send for ObjectKey
impl Sync for ObjectKey
impl Unpin for ObjectKey
impl UnsafeUnpin for ObjectKey
impl UnwindSafe for ObjectKey
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