Struct gitlab::api::projects::repository::branches::CreateBranchBuilder
source · pub struct CreateBranchBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateBranch
.
Implementations§
source§impl<'a> CreateBranchBuilder<'a>
impl<'a> CreateBranchBuilder<'a>
sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to create a branch on.
sourcepub fn branch<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn branch<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the new branch.
sourcepub fn ref_<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn ref_<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The ref to create the branch from.
sourcepub fn build(&self) -> Result<CreateBranch<'a>, CreateBranchBuilderError>
pub fn build(&self) -> Result<CreateBranch<'a>, CreateBranchBuilderError>
Trait Implementations§
source§impl<'a> Clone for CreateBranchBuilder<'a>
impl<'a> Clone for CreateBranchBuilder<'a>
source§fn clone(&self) -> CreateBranchBuilder<'a>
fn clone(&self) -> CreateBranchBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CreateBranchBuilder<'a>
impl<'a> RefUnwindSafe for CreateBranchBuilder<'a>
impl<'a> Send for CreateBranchBuilder<'a>
impl<'a> Sync for CreateBranchBuilder<'a>
impl<'a> Unpin for CreateBranchBuilder<'a>
impl<'a> UnwindSafe for CreateBranchBuilder<'a>
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