pub struct PullsCreateReviewRequest {
pub commit_id: Option<String>,
pub body: Option<String>,
pub event: Option<Event>,
pub comments: Option<Vec<PullsCreateReviewRequestCommentsInner>>,
}
Fields§
§commit_id: Option<String>
The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position
. Defaults to the most recent commit in the pull request when you do not specify a value.
body: Option<String>
Required when using REQUEST_CHANGES
or COMMENT
for the event
parameter. The body text of the pull request review.
event: Option<Event>
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
comments: Option<Vec<PullsCreateReviewRequestCommentsInner>>
Use the following table to specify the location, destination, and contents of the draft review comment.
Implementations§
Source§impl PullsCreateReviewRequest
impl PullsCreateReviewRequest
pub fn new() -> PullsCreateReviewRequest
Trait Implementations§
Source§impl Clone for PullsCreateReviewRequest
impl Clone for PullsCreateReviewRequest
Source§fn clone(&self) -> PullsCreateReviewRequest
fn clone(&self) -> PullsCreateReviewRequest
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 Debug for PullsCreateReviewRequest
impl Debug for PullsCreateReviewRequest
Source§impl Default for PullsCreateReviewRequest
impl Default for PullsCreateReviewRequest
Source§fn default() -> PullsCreateReviewRequest
fn default() -> PullsCreateReviewRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullsCreateReviewRequest
impl<'de> Deserialize<'de> for PullsCreateReviewRequest
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 PullsCreateReviewRequest
impl PartialEq for PullsCreateReviewRequest
Source§impl Serialize for PullsCreateReviewRequest
impl Serialize for PullsCreateReviewRequest
impl StructuralPartialEq for PullsCreateReviewRequest
Auto Trait Implementations§
impl Freeze for PullsCreateReviewRequest
impl RefUnwindSafe for PullsCreateReviewRequest
impl Send for PullsCreateReviewRequest
impl Sync for PullsCreateReviewRequest
impl Unpin for PullsCreateReviewRequest
impl UnwindSafe for PullsCreateReviewRequest
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