pub struct Issue {
pub number: u64,
pub title: String,
pub body: String,
pub author: String,
pub open: bool,
pub comments: usize,
pub opened_at_unix_ms: i64,
}Expand description
One issue, folded from its events.
Unlike Review, this owns its whole state — the title, the body, whether
it is open — because unlike a review there is no crate::pulls record
behind it. An issue is nothing but the fold of its signed events, so the
fold is the only authority for what it says.
Fields§
§number: u64The number the fold assigned: the Nth Event::IssueOpened in the
repository is issue N.
title: StringThe one-line summary the opener signed.
body: StringThe body the opener signed.
The ACL principal that opened it — the opening event’s actor.
open: boolWhether it is open right now. An Event::IssueClosed shuts it.
comments: usizeHow many comments have been made.
opened_at_unix_ms: i64When it was opened.
Trait Implementations§
impl Eq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.