#[non_exhaustive]pub struct CreatePullRequestInput {
pub title: Option<String>,
pub description: Option<String>,
pub targets: Option<Vec<Target>>,
pub client_request_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.title: Option<String>
The title of the pull request. This title is used to identify the pull request to other users in the repository.
description: Option<String>
A description of the pull request.
targets: Option<Vec<Target>>
The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
client_request_token: Option<String>
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
The Amazon Web ServicesSDKs prepopulate client request tokens. If you are using an Amazon Web ServicesSDK, an idempotency token is created for you.
Implementations§
source§impl CreatePullRequestInput
impl CreatePullRequestInput
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title of the pull request. This title is used to identify the pull request to other users in the repository.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the pull request.
sourcepub fn targets(&self) -> &[Target]
pub fn targets(&self) -> &[Target]
The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .targets.is_none()
.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
The Amazon Web ServicesSDKs prepopulate client request tokens. If you are using an Amazon Web ServicesSDK, an idempotency token is created for you.
source§impl CreatePullRequestInput
impl CreatePullRequestInput
sourcepub fn builder() -> CreatePullRequestInputBuilder
pub fn builder() -> CreatePullRequestInputBuilder
Creates a new builder-style object to manufacture CreatePullRequestInput
.
Trait Implementations§
source§impl Clone for CreatePullRequestInput
impl Clone for CreatePullRequestInput
source§fn clone(&self) -> CreatePullRequestInput
fn clone(&self) -> CreatePullRequestInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePullRequestInput
impl Debug for CreatePullRequestInput
source§impl PartialEq for CreatePullRequestInput
impl PartialEq for CreatePullRequestInput
source§fn eq(&self, other: &CreatePullRequestInput) -> bool
fn eq(&self, other: &CreatePullRequestInput) -> bool
self
and other
values to be equal, and is used
by ==
.