Struct roctogen::models::PostPullsCreateReviewComment [−][src]
pub struct PostPullsCreateReviewComment { pub body: Option<String>, pub commit_id: Option<String>, pub path: Option<String>, pub position: Option<i64>, pub side: Option<String>, pub line: Option<i64>, pub start_line: Option<i64>, pub start_side: Option<String>, pub in_reply_to: Option<i64>, }
Fields
body: Option<String>
Expand description
The text of the review comment.
commit_id: Option<String>
Expand description
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
.
path: Option<String>
Expand description
The relative path to the file that necessitates a comment.
position: Option<i64>
Expand description
Required without comfort-fade
preview. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.
side: Option<String>
Expand description
Required with comfort-fade
preview. In a split diff view, the side of the diff that the pull request’s changes appear on. Can be LEFT
or RIGHT
. Use LEFT
for deletions that appear in red. Use RIGHT
for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "Diff view options" in the GitHub Help documentation.
line: Option<i64>
Expand description
Required with comfort-fade
preview. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.
start_line: Option<i64>
Expand description
Required when using multi-line comments. To create multi-line comments, you must use the comfort-fade
preview header. The start_line
is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "Commenting on a pull request" in the GitHub Help documentation.
start_side: Option<String>
Expand description
Required when using multi-line comments. To create multi-line comments, you must use the comfort-fade
preview header. The start_side
is the starting side of the diff that the comment applies to. Can be LEFT
or RIGHT
. To learn more about multi-line comments, see "Commenting on a pull request" in the GitHub Help documentation. See side
in this table for additional context.
in_reply_to: Option<i64>
Trait Implementations
impl Clone for PostPullsCreateReviewComment
[src]
impl Clone for PostPullsCreateReviewComment
[src]fn clone(&self) -> PostPullsCreateReviewComment
[src]
fn clone(&self) -> PostPullsCreateReviewComment
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PostPullsCreateReviewComment
[src]
impl Debug for PostPullsCreateReviewComment
[src]impl Default for PostPullsCreateReviewComment
[src]
impl Default for PostPullsCreateReviewComment
[src]fn default() -> PostPullsCreateReviewComment
[src]
fn default() -> PostPullsCreateReviewComment
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for PostPullsCreateReviewComment
[src]
impl<'de> Deserialize<'de> for PostPullsCreateReviewComment
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<PostPullsCreateReviewComment> for PostPullsCreateReviewComment
[src]
impl PartialEq<PostPullsCreateReviewComment> for PostPullsCreateReviewComment
[src]fn eq(&self, other: &PostPullsCreateReviewComment) -> bool
[src]
fn eq(&self, other: &PostPullsCreateReviewComment) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PostPullsCreateReviewComment) -> bool
[src]
fn ne(&self, other: &PostPullsCreateReviewComment) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for PostPullsCreateReviewComment
[src]
Auto Trait Implementations
impl RefUnwindSafe for PostPullsCreateReviewComment
impl Send for PostPullsCreateReviewComment
impl Sync for PostPullsCreateReviewComment
impl Unpin for PostPullsCreateReviewComment
impl UnwindSafe for PostPullsCreateReviewComment
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,