pub struct PullRequestActivity {
pub id: i64,
pub kind: String,
pub kind_type: String,
pub text: String,
pub author: Option<Principal>,
pub parent_id: Option<i64>,
pub created: Option<i64>,
pub updated: Option<i64>,
pub edited: Option<i64>,
pub deleted: Option<i64>,
pub resolved: Option<i64>,
pub code_comment: Option<CodeComment>,
}Expand description
One entry in a pull request’s timeline: a comment, a code comment, or a system event such as a merge or a title change.
kind and kind_type stay strings for the same reason crate::CiStatus
does — GitFox grows event types, and an unknown one must still decode.
Fields§
§id: i64§kind: Stringcomment, change-comment or system.
kind_type: Stringcomment, code-comment, merge, state-change, review-submit, …
text: String§parent_id: Option<i64>§created: Option<i64>§updated: Option<i64>§edited: Option<i64>§deleted: Option<i64>Set once the comment was deleted; GitFox keeps the entry.
resolved: Option<i64>§code_comment: Option<CodeComment>Implementations§
Source§impl PullRequestActivity
impl PullRequestActivity
Sourcepub fn is_comment(&self) -> bool
pub fn is_comment(&self) -> bool
A comment a person wrote, as opposed to an event GitFox recorded.
Trait Implementations§
Source§impl Clone for PullRequestActivity
impl Clone for PullRequestActivity
Source§impl Debug for PullRequestActivity
impl Debug for PullRequestActivity
Source§impl Default for PullRequestActivity
impl Default for PullRequestActivity
Source§impl<'de> Deserialize<'de> for PullRequestActivity
impl<'de> Deserialize<'de> for PullRequestActivity
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 Forget for PullRequestActivity
impl Freeze for PullRequestActivity
impl RefUnwindSafe for PullRequestActivity
impl Send for PullRequestActivity
impl Sync for PullRequestActivity
impl Unpin for PullRequestActivity
impl UnsafeUnpin for PullRequestActivity
impl UnwindSafe for PullRequestActivity
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