Struct octorust::types::PullsCreateReviewRequest [−][src]
pub struct PullsCreateReviewRequest { pub body: String, pub comments: Vec<Comments>, pub commit_id: String, pub event: Option<PullsCreateReviewRequestEvent>, }
Fields
body: String
**Required** when using REQUEST_CHANGES
or COMMENT
for the event
parameter. The body text of the pull request review.
comments: Vec<Comments>
Use the following table to specify the location, destination, and contents of the draft review comment.
commit_id: 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.
event: Option<PullsCreateReviewRequestEvent>
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.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for PullsCreateReviewRequest
impl Send for PullsCreateReviewRequest
impl Sync for PullsCreateReviewRequest
impl Unpin for PullsCreateReviewRequest
impl UnwindSafe for PullsCreateReviewRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more