pub struct PullsCreateReviewRequestCommentsInner {
pub path: String,
pub position: Option<i32>,
pub body: String,
pub line: Option<i32>,
pub side: Option<String>,
pub start_line: Option<i32>,
pub start_side: Option<String>,
}
Fields§
§path: String
The relative path to the file that necessitates a review comment.
position: Option<i32>
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. The position
value 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.
body: String
Text of the review comment.
line: Option<i32>
§side: Option<String>
§start_line: Option<i32>
§start_side: Option<String>
Implementations§
Source§impl PullsCreateReviewRequestCommentsInner
impl PullsCreateReviewRequestCommentsInner
pub fn new(path: String, body: String) -> PullsCreateReviewRequestCommentsInner
Trait Implementations§
Source§impl Clone for PullsCreateReviewRequestCommentsInner
impl Clone for PullsCreateReviewRequestCommentsInner
Source§fn clone(&self) -> PullsCreateReviewRequestCommentsInner
fn clone(&self) -> PullsCreateReviewRequestCommentsInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PullsCreateReviewRequestCommentsInner
impl Default for PullsCreateReviewRequestCommentsInner
Source§fn default() -> PullsCreateReviewRequestCommentsInner
fn default() -> PullsCreateReviewRequestCommentsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullsCreateReviewRequestCommentsInner
impl<'de> Deserialize<'de> for PullsCreateReviewRequestCommentsInner
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullsCreateReviewRequestCommentsInner
impl PartialEq for PullsCreateReviewRequestCommentsInner
Source§fn eq(&self, other: &PullsCreateReviewRequestCommentsInner) -> bool
fn eq(&self, other: &PullsCreateReviewRequestCommentsInner) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PullsCreateReviewRequestCommentsInner
Auto Trait Implementations§
impl Freeze for PullsCreateReviewRequestCommentsInner
impl RefUnwindSafe for PullsCreateReviewRequestCommentsInner
impl Send for PullsCreateReviewRequestCommentsInner
impl Sync for PullsCreateReviewRequestCommentsInner
impl Unpin for PullsCreateReviewRequestCommentsInner
impl UnwindSafe for PullsCreateReviewRequestCommentsInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more