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
sourceimpl Clone for ReviewComment
impl Clone for ReviewComment
sourcefn clone(&self) -> ReviewComment
fn clone(&self) -> ReviewComment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReviewComment
impl Debug for ReviewComment
sourceimpl<'de> Deserialize<'de> for ReviewComment
impl<'de> Deserialize<'de> for ReviewComment
sourcefn 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
sourceimpl PartialEq<ReviewComment> for ReviewComment
impl PartialEq<ReviewComment> for ReviewComment
sourcefn eq(&self, other: &ReviewComment) -> bool
fn eq(&self, other: &ReviewComment) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReviewComment) -> bool
fn ne(&self, other: &ReviewComment) -> bool
This method tests for !=
.
sourceimpl Serialize for ReviewComment
impl Serialize for ReviewComment
impl Eq for ReviewComment
impl StructuralEq for ReviewComment
impl StructuralPartialEq for ReviewComment
Auto Trait Implementations
impl RefUnwindSafe for ReviewComment
impl Send for ReviewComment
impl Sync for ReviewComment
impl Unpin for ReviewComment
impl UnwindSafe for ReviewComment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more