pub struct ParentReference {
pub id: IssueRef,
pub number: u32,
pub display: String,
}Expand description
A resolved reference to another issue, with its derived display label.
data-model.md §1. The label is computed on read and never stored: a
stored title goes stale the moment the referenced issue is retitled.
Fields§
§id: IssueRefThe referenced issue’s canonical graph identity.
number: u32The referenced issue’s number.
display: String#<number> <title>, or just #<number> when the title is blank.
Implementations§
Source§impl ParentReference
impl ParentReference
Sourcepub fn new<N: HierarchyNode>(issue: &N) -> Self
pub fn new<N: HierarchyNode>(issue: &N) -> Self
Build a reference, deriving the label from the title.
Trait Implementations§
Source§impl Clone for ParentReference
impl Clone for ParentReference
Source§impl Debug for ParentReference
impl Debug for ParentReference
impl Eq for ParentReference
Source§impl PartialEq for ParentReference
impl PartialEq for ParentReference
impl StructuralPartialEq for ParentReference
Auto Trait Implementations§
impl Freeze for ParentReference
impl RefUnwindSafe for ParentReference
impl Send for ParentReference
impl Sync for ParentReference
impl Unpin for ParentReference
impl UnsafeUnpin for ParentReference
impl UnwindSafe for ParentReference
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more