#[non_exhaustive]pub struct IssueSummary {
pub identifier: String,
pub title: String,
pub summary: Option<String>,
pub url: String,
pub state: IssueState,
pub tracker: bool,
pub archived: bool,
pub assignee: Option<String>,
/* private fields */
}Expand description
A short issue summary, held only within the current viewer session.
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.identifier: String§title: String§summary: Option<String>Plain text explaining the problem this issue solves; absent on older issues.
url: StringThe issue’s navigation URL, handled by the responding board.
state: IssueState§tracker: bool§archived: bool§assignee: Option<String>The assignee’s display name.
Implementations§
Source§impl IssueSummary
impl IssueSummary
pub fn with_priority(self, value: Option<u8>) -> Self
pub fn priority(&self) -> Option<u8>
pub fn with_owner(self, value: Option<IssuePerson>) -> Self
pub fn owner(&self) -> Option<&IssuePerson>
Sourcepub fn with_assignee_id(self, value: Option<&str>) -> Self
pub fn with_assignee_id(self, value: Option<&str>) -> Self
Stable identity allows an owner comparison even when two people share a name.
pub fn assignee_id(&self) -> Option<&str>
pub fn with_assignee_kind(self, value: Option<&str>) -> Self
pub fn assignee_kind(&self) -> Option<&str>
pub fn with_assignee_rank(self, value: Option<&str>) -> Self
pub fn assignee_rank(&self) -> Option<&str>
pub fn with_progress(self, value: Option<IssueProgress>) -> Self
pub fn progress(&self) -> Option<IssueProgress>
pub fn with_pull_requests(self, value: Option<PullRequestSummary>) -> Self
pub fn pull_requests(&self) -> Option<&PullRequestSummary>
pub fn with_due_date(self, value: Option<&str>) -> Self
pub fn due_date(&self) -> Option<&str>
pub fn with_latest_activity(self, value: Option<LatestActivity>) -> Self
pub fn latest_activity(&self) -> Option<&LatestActivity>
Sourcepub fn with_ready_for_agents(self, value: Option<bool>) -> Self
pub fn with_ready_for_agents(self, value: Option<bool>) -> Self
Whether the issue is flagged Ready for agents, to be picked up by a
fleet’s agents. None when the responder has not read it.
pub fn ready_for_agents(&self) -> Option<bool>
Source§impl IssueSummary
impl IssueSummary
pub fn new(identifier: &str, title: &str, url: &str, state: IssueState) -> Self
Sourcepub fn with_markers(self, tracker: bool, archived: bool) -> Self
pub fn with_markers(self, tracker: bool, archived: bool) -> Self
Whether the issue is a tracker and whether it is archived.
pub fn with_summary(self, summary: Option<&str>) -> Self
pub fn with_assignee(self, assignee: Option<&str>) -> Self
Trait Implementations§
Source§impl Clone for IssueSummary
impl Clone for IssueSummary
impl Eq for IssueSummary
Source§impl PartialEq for IssueSummary
impl PartialEq for IssueSummary
impl StructuralPartialEq for IssueSummary
Auto Trait Implementations§
impl Forget for IssueSummary
impl Freeze for IssueSummarywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Details is !null: Freeze,
PhantomData<Details>: Freeze,
impl Move for IssueSummary
impl RefUnwindSafe for IssueSummary
impl Send for IssueSummary
impl Sync for IssueSummary
impl Unpin for IssueSummary
impl UnsafeUnpin for IssueSummarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Details is !null: UnsafeUnpin,
PhantomData<Details>: UnsafeUnpin,
impl UnwindSafe for IssueSummarywhere
RawVecInner: UnwindSafe,
BoxRaw<Details>: UnwindSafe,
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