pub struct CreateCommitOptions { /* private fields */ }
Expand description
Options for creating a new commit.
Implementations§
Source§impl CreateCommitOptions
impl CreateCommitOptions
Set the author name and related email address.
Set the author name.
Set the author email address.
Set the authored commit time.
Sourcepub fn committer(&mut self, name: &str) -> &mut Self
pub fn committer(&mut self, name: &str) -> &mut Self
Set the committer name and related email address.
Sourcepub fn committer_name(&mut self, name: &str) -> &mut Self
pub fn committer_name(&mut self, name: &str) -> &mut Self
Set the committer name.
Sourcepub fn committer_email(&mut self, email: &str) -> &mut Self
pub fn committer_email(&mut self, email: &str) -> &mut Self
Set the committer email.
Sourcepub fn commit_time(&mut self, time: i64) -> &mut Self
pub fn commit_time(&mut self, time: i64) -> &mut Self
Set the committed commit time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateCommitOptions
impl RefUnwindSafe for CreateCommitOptions
impl Send for CreateCommitOptions
impl Sync for CreateCommitOptions
impl Unpin for CreateCommitOptions
impl UnwindSafe for CreateCommitOptions
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