Struct f3_rs::review::ReviewComment
source · pub struct ReviewComment {Show 13 fields
pub index: usize,
pub in_reply_to: usize,
pub content: String,
pub tree_path: String,
pub diff_hunk: String,
pub patch: String,
pub position: usize,
pub line: usize,
pub commit_id: String,
pub poster_id: usize,
pub created_at: String,
pub updated_at: String,
pub reactions: Option<Vec<Reaction>>,
}
Expand description
A comment in the context of a review.
Fields§
§index: usize
Unique identifier of the review comment.
in_reply_to: usize
Unique identifier of the review comment replied to.
content: String
The text of the review comment
tree_path: String
The relative path to the file that necessitates a comment.
diff_hunk: String
The hunk being commented on, which is the same as the patch only in a different format.
patch: String
The patch being commented on, which is the same as the diff_hunk only in a different format.
position: usize
Equals the number of lines down from the first ‘@@’ hunk header in the file you want to add a comment. The line just below the ‘@@’ line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.“,
line: usize
The line number of the comment in the tree_path
commit_id: String
The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position.
poster_id: usize
Unique identifier of the user who authored the comment.
created_at: String
Creation time
updated_at: String
Last update time
reactions: Option<Vec<Reaction>>
List of reactions
Trait Implementations§
source§impl Clone for ReviewComment
impl Clone for ReviewComment
source§fn clone(&self) -> ReviewComment
fn clone(&self) -> ReviewComment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReviewComment
impl Debug for ReviewComment
source§impl<'de> Deserialize<'de> for ReviewComment
impl<'de> Deserialize<'de> for ReviewComment
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>,
source§impl PartialEq<ReviewComment> for ReviewComment
impl PartialEq<ReviewComment> for ReviewComment
source§fn eq(&self, other: &ReviewComment) -> bool
fn eq(&self, other: &ReviewComment) -> bool
self
and other
values to be equal, and is used
by ==
.