pub struct CommitBuilder<'repo> { /* private fields */ }Implementations§
Source§impl CommitBuilder<'_>
impl CommitBuilder<'_>
pub fn for_new_commit<'repo>( mut_repo: &'repo mut MutableRepo, settings: &UserSettings, parents: Vec<CommitId>, tree_id: TreeId, ) -> CommitBuilder<'repo>
pub fn for_rewrite_from<'repo>( mut_repo: &'repo mut MutableRepo, settings: &UserSettings, predecessor: &Commit, ) -> CommitBuilder<'repo>
pub fn set_parents(self, parents: Vec<CommitId>) -> Self
pub fn set_predecessors(self, predecessors: Vec<CommitId>) -> Self
pub fn set_tree(self, tree_id: TreeId) -> Self
pub fn set_change_id(self, change_id: ChangeId) -> Self
pub fn generate_new_change_id(self) -> Self
pub fn set_description(self, description: impl Into<String>) -> Self
pub fn set_committer(self, committer: Signature) -> Self
pub fn write(self) -> BackendResult<Commit>
Auto Trait Implementations§
impl<'repo> Freeze for CommitBuilder<'repo>
impl<'repo> !RefUnwindSafe for CommitBuilder<'repo>
impl<'repo> Send for CommitBuilder<'repo>
impl<'repo> !Sync for CommitBuilder<'repo>
impl<'repo> Unpin for CommitBuilder<'repo>
impl<'repo> !UnwindSafe for CommitBuilder<'repo>
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 more