#[non_exhaustive]pub struct BatchCreatePullRequestCommentsRequest {
pub parent: String,
pub requests: Vec<CreatePullRequestCommentRequest>,
/* private fields */
}Expand description
The request to batch create pull request comments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The pull request in which to create the pull request comments.
Format:
projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}
requests: Vec<CreatePullRequestCommentRequest>Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list
Implementations§
Source§impl BatchCreatePullRequestCommentsRequest
impl BatchCreatePullRequestCommentsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_requests<T, V>(self, v: T) -> Self
pub fn set_requests<T, V>(self, v: T) -> Self
Sets the value of requests.
Trait Implementations§
Source§impl Clone for BatchCreatePullRequestCommentsRequest
impl Clone for BatchCreatePullRequestCommentsRequest
Source§fn clone(&self) -> BatchCreatePullRequestCommentsRequest
fn clone(&self) -> BatchCreatePullRequestCommentsRequest
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 BatchCreatePullRequestCommentsRequest
impl Default for BatchCreatePullRequestCommentsRequest
Source§fn default() -> BatchCreatePullRequestCommentsRequest
fn default() -> BatchCreatePullRequestCommentsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchCreatePullRequestCommentsRequest
impl PartialEq for BatchCreatePullRequestCommentsRequest
Source§fn eq(&self, other: &BatchCreatePullRequestCommentsRequest) -> bool
fn eq(&self, other: &BatchCreatePullRequestCommentsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCreatePullRequestCommentsRequest
Auto Trait Implementations§
impl Freeze for BatchCreatePullRequestCommentsRequest
impl RefUnwindSafe for BatchCreatePullRequestCommentsRequest
impl Send for BatchCreatePullRequestCommentsRequest
impl Sync for BatchCreatePullRequestCommentsRequest
impl Unpin for BatchCreatePullRequestCommentsRequest
impl UnwindSafe for BatchCreatePullRequestCommentsRequest
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