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

source§

fn clone(&self) -> ReviewComment

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReviewComment

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ReviewComment

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<ReviewComment> for ReviewComment

source§

fn eq(&self, other: &ReviewComment) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ReviewComment

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for ReviewComment

source§

impl StructuralEq for ReviewComment

source§

impl StructuralPartialEq for ReviewComment

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,