#[non_exhaustive]pub struct CreateBranchInputBuilder { /* private fields */ }
Expand description
A builder for CreateBranchInput
.
Implementations§
source§impl CreateBranchInputBuilder
impl CreateBranchInputBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository in which you want to create the new branch.
This field is required.sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository in which you want to create the new branch.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository in which you want to create the new branch.
sourcepub fn branch_name(self, input: impl Into<String>) -> Self
pub fn branch_name(self, input: impl Into<String>) -> Self
The name of the new branch to create.
This field is required.sourcepub fn set_branch_name(self, input: Option<String>) -> Self
pub fn set_branch_name(self, input: Option<String>) -> Self
The name of the new branch to create.
sourcepub fn get_branch_name(&self) -> &Option<String>
pub fn get_branch_name(&self) -> &Option<String>
The name of the new branch to create.
sourcepub fn commit_id(self, input: impl Into<String>) -> Self
pub fn commit_id(self, input: impl Into<String>) -> Self
The ID of the commit to point the new branch to.
This field is required.sourcepub fn set_commit_id(self, input: Option<String>) -> Self
pub fn set_commit_id(self, input: Option<String>) -> Self
The ID of the commit to point the new branch to.
sourcepub fn get_commit_id(&self) -> &Option<String>
pub fn get_commit_id(&self) -> &Option<String>
The ID of the commit to point the new branch to.
sourcepub fn build(self) -> Result<CreateBranchInput, BuildError>
pub fn build(self) -> Result<CreateBranchInput, BuildError>
Consumes the builder and constructs a CreateBranchInput
.
source§impl CreateBranchInputBuilder
impl CreateBranchInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateBranchOutput, SdkError<CreateBranchError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateBranchOutput, SdkError<CreateBranchError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateBranchInputBuilder
impl Clone for CreateBranchInputBuilder
source§fn clone(&self) -> CreateBranchInputBuilder
fn clone(&self) -> CreateBranchInputBuilder
Returns a copy 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 CreateBranchInputBuilder
impl Debug for CreateBranchInputBuilder
source§impl Default for CreateBranchInputBuilder
impl Default for CreateBranchInputBuilder
source§fn default() -> CreateBranchInputBuilder
fn default() -> CreateBranchInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateBranchInputBuilder
impl PartialEq for CreateBranchInputBuilder
source§fn eq(&self, other: &CreateBranchInputBuilder) -> bool
fn eq(&self, other: &CreateBranchInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBranchInputBuilder
Auto Trait Implementations§
impl Freeze for CreateBranchInputBuilder
impl RefUnwindSafe for CreateBranchInputBuilder
impl Send for CreateBranchInputBuilder
impl Sync for CreateBranchInputBuilder
impl Unpin for CreateBranchInputBuilder
impl UnwindSafe for CreateBranchInputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.