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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.