#[non_exhaustive]pub struct IssueRelation {
pub id: IssueRelationId,
pub relation_type: IssueRelationType,
pub issue: IssueStub,
pub related_issue: IssueStub,
}Expand description
One directed relation edge between two issues.
Direction is positional: for IssueRelationType::Blocks, issue
blocks related_issue — there is no blockedBy relation type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IssueRelationIdRelation ID.
relation_type: IssueRelationTypeHow issue relates to
related_issue.
issue: IssueStubThe source issue the relation originates from.
The target issue the relation points at.
Trait Implementations§
Source§impl Clone for IssueRelation
impl Clone for IssueRelation
Source§fn clone(&self) -> IssueRelation
fn clone(&self) -> IssueRelation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssueRelation
impl Debug for IssueRelation
Source§impl<'de> Deserialize<'de> for IssueRelation
impl<'de> Deserialize<'de> for IssueRelation
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
Auto Trait Implementations§
impl Freeze for IssueRelation
impl RefUnwindSafe for IssueRelation
impl Send for IssueRelation
impl Sync for IssueRelation
impl Unpin for IssueRelation
impl UnsafeUnpin for IssueRelation
impl UnwindSafe for IssueRelation
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