pub struct IssueContent<'a> {
pub id: &'a str,
pub number: u32,
pub file: &'a str,
pub title: &'a str,
pub body: &'a str,
}Expand description
The parts of an issue a reconciliation needs.
A struct rather than a &Issue so this module does not depend on the model — the store’s
call site projects the issue into these five values, and a test can too.
Fields§
§id: &'a strThe issue’s canonical id (never recycled), or its filename stem when it has none.
number: u32The issue’s human-facing number.
file: &'a strStore-relative path of the issue file.
title: &'a strThe issue title.
body: &'a strThe issue body (including any ## Comments section).
Trait Implementations§
Source§impl<'a> Clone for IssueContent<'a>
impl<'a> Clone for IssueContent<'a>
impl<'a> Copy for IssueContent<'a>
Auto Trait Implementations§
impl<'a> Freeze for IssueContent<'a>
impl<'a> RefUnwindSafe for IssueContent<'a>
impl<'a> Send for IssueContent<'a>
impl<'a> Sync for IssueContent<'a>
impl<'a> Unpin for IssueContent<'a>
impl<'a> UnsafeUnpin for IssueContent<'a>
impl<'a> UnwindSafe for IssueContent<'a>
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<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