#[non_exhaustive]pub struct CreatePullRequestRequest {
pub parent: String,
pub pull_request: Option<PullRequest>,
/* private fields */
}Expand description
CreatePullRequestRequest is the request to create a pull request.
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 repository that the pull request is created from. Format:
projects/{project_number}/locations/{location_id}/repositories/{repository_id}
pull_request: Option<PullRequest>Required. The pull request to create.
Implementations§
Source§impl CreatePullRequestRequest
impl CreatePullRequestRequest
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_pull_request<T>(self, v: T) -> Selfwhere
T: Into<PullRequest>,
pub fn set_pull_request<T>(self, v: T) -> Selfwhere
T: Into<PullRequest>,
Sets the value of pull_request.
Sourcepub fn set_or_clear_pull_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<PullRequest>,
pub fn set_or_clear_pull_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<PullRequest>,
Sets or clears the value of pull_request.
Trait Implementations§
Source§impl Clone for CreatePullRequestRequest
impl Clone for CreatePullRequestRequest
Source§fn clone(&self) -> CreatePullRequestRequest
fn clone(&self) -> CreatePullRequestRequest
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 CreatePullRequestRequest
impl Debug for CreatePullRequestRequest
Source§impl Default for CreatePullRequestRequest
impl Default for CreatePullRequestRequest
Source§fn default() -> CreatePullRequestRequest
fn default() -> CreatePullRequestRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreatePullRequestRequest
impl Message for CreatePullRequestRequest
Source§impl PartialEq for CreatePullRequestRequest
impl PartialEq for CreatePullRequestRequest
impl StructuralPartialEq for CreatePullRequestRequest
Auto Trait Implementations§
impl Freeze for CreatePullRequestRequest
impl RefUnwindSafe for CreatePullRequestRequest
impl Send for CreatePullRequestRequest
impl Sync for CreatePullRequestRequest
impl Unpin for CreatePullRequestRequest
impl UnwindSafe for CreatePullRequestRequest
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