pub enum TimelineEvent {
Show 14 variants
Commented {
id: u64,
user: IssueUser,
body: Option<String>,
created_at: DateTime<Utc>,
updated_at: DateTime<Utc>,
html_url: String,
},
Labeled {
id: u64,
actor: IssueUser,
label: Label,
created_at: DateTime<Utc>,
},
Unlabeled {
id: u64,
actor: IssueUser,
label: Label,
created_at: DateTime<Utc>,
},
Assigned {
id: u64,
actor: IssueUser,
assignee: IssueUser,
created_at: DateTime<Utc>,
},
Unassigned {
id: u64,
actor: IssueUser,
assignee: IssueUser,
created_at: DateTime<Utc>,
},
Milestoned {
id: u64,
actor: IssueUser,
milestone: MilestoneSummary,
created_at: DateTime<Utc>,
},
Demilestoned {
id: u64,
actor: IssueUser,
milestone: MilestoneSummary,
created_at: DateTime<Utc>,
},
Closed {
id: u64,
actor: IssueUser,
created_at: DateTime<Utc>,
},
Reopened {
id: u64,
actor: IssueUser,
created_at: DateTime<Utc>,
},
Locked {
id: u64,
actor: IssueUser,
lock_reason: Option<String>,
created_at: DateTime<Utc>,
},
Unlocked {
id: u64,
actor: IssueUser,
created_at: DateTime<Utc>,
},
Renamed {
id: u64,
actor: IssueUser,
rename: IssueRename,
created_at: DateTime<Utc>,
},
Referenced {
id: u64,
actor: IssueUser,
created_at: DateTime<Utc>,
},
Unknown,
}Expand description
A single item in an issue’s full timeline.
The event field drives deserialization. Unknown event kinds map to
TimelineEvent::Unknown without error (via #[serde(other)]).
See docs/specs/interfaces/issue-operations.md
Variants§
Commented
A comment posted on the issue. Note: GitHub returns comment objects
here (with user, not actor) so this variant is structurally
different from the other event kinds.
Fields
Labeled
Unlabeled
Assigned
Unassigned
Milestoned
Demilestoned
Closed
Reopened
Locked
Unlocked
Renamed
Referenced
Unknown
Catch-all: unknown event kind — must not cause a deserialization error.
Trait Implementations§
Source§impl Clone for TimelineEvent
impl Clone for TimelineEvent
Source§fn clone(&self) -> TimelineEvent
fn clone(&self) -> TimelineEvent
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 TimelineEvent
impl Debug for TimelineEvent
Source§impl<'de> Deserialize<'de> for TimelineEvent
impl<'de> Deserialize<'de> for TimelineEvent
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 TimelineEvent
impl RefUnwindSafe for TimelineEvent
impl Send for TimelineEvent
impl Sync for TimelineEvent
impl Unpin for TimelineEvent
impl UnsafeUnpin for TimelineEvent
impl UnwindSafe for TimelineEvent
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