Skip to main content

IssueSummary

Struct IssueSummary 

Source
#[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: String

The 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

Source

pub fn with_priority(self, value: Option<u8>) -> Self

Source

pub fn priority(&self) -> Option<u8>

Source

pub fn with_owner(self, value: Option<IssuePerson>) -> Self

Source

pub fn owner(&self) -> Option<&IssuePerson>

Source

pub fn with_assignee_id(self, value: Option<&str>) -> Self

Stable identity allows an owner comparison even when two people share a name.

Source

pub fn assignee_id(&self) -> Option<&str>

Source

pub fn with_assignee_kind(self, value: Option<&str>) -> Self

Source

pub fn assignee_kind(&self) -> Option<&str>

Source

pub fn with_assignee_rank(self, value: Option<&str>) -> Self

Source

pub fn assignee_rank(&self) -> Option<&str>

Source

pub fn with_progress(self, value: Option<IssueProgress>) -> Self

Source

pub fn progress(&self) -> Option<IssueProgress>

Source

pub fn with_pull_requests(self, value: Option<PullRequestSummary>) -> Self

Source

pub fn pull_requests(&self) -> Option<&PullRequestSummary>

Source

pub fn with_due_date(self, value: Option<&str>) -> Self

Source

pub fn due_date(&self) -> Option<&str>

Source

pub fn with_latest_activity(self, value: Option<LatestActivity>) -> Self

Source

pub fn latest_activity(&self) -> Option<&LatestActivity>

Source

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.

Source

pub fn ready_for_agents(&self) -> Option<bool>

Source§

impl IssueSummary

Source

pub fn new(identifier: &str, title: &str, url: &str, state: IssueState) -> Self

Source

pub fn with_markers(self, tracker: bool, archived: bool) -> Self

Whether the issue is a tracker and whether it is archived.

Source

pub fn with_summary(self, summary: Option<&str>) -> Self

Source

pub fn with_assignee(self, assignee: Option<&str>) -> Self

Trait Implementations§

Source§

impl Clone for IssueSummary

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Eq for IssueSummary

Source§

impl PartialEq for IssueSummary

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IssueSummary

Auto Trait Implementations§

§

impl Forget for IssueSummary

§

impl Freeze for IssueSummary
where *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
where RawVecInner: Send, BoxRaw<Details>: Send,

§

impl Sync for IssueSummary
where RawVecInner: Sync, BoxRaw<Details>: Sync,

§

impl Unpin for IssueSummary
where *const u8 is !null: Unpin, Box<Details>: Unpin,

§

impl UnsafeUnpin for IssueSummary
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const Details is !null: UnsafeUnpin, PhantomData<Details>: UnsafeUnpin,

§

impl UnwindSafe for IssueSummary
where RawVecInner: UnwindSafe, BoxRaw<Details>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.