Struct aws_sdk_codecommit::client::fluent_builders::CreateBranch
source · [−]pub struct CreateBranch<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateBranch
.
Creates a branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
Implementations
impl<C, M, R> CreateBranch<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateBranch<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateBranchOutput, SdkError<CreateBranchError>> where
R::Policy: SmithyRetryPolicy<CreateBranchInputOperationOutputAlias, CreateBranchOutput, CreateBranchError, CreateBranchInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateBranchOutput, SdkError<CreateBranchError>> where
R::Policy: SmithyRetryPolicy<CreateBranchInputOperationOutputAlias, CreateBranchOutput, CreateBranchError, CreateBranchInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the repository in which you want to create the new branch.
The name of the repository in which you want to create the new branch.
The name of the new branch to create.
The name of the new branch to create.
The ID of the commit to point the new branch to.
The ID of the commit to point the new branch to.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateBranch<C, M, R>
impl<C, M, R> Unpin for CreateBranch<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateBranch<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more