pub struct CommitOptions<'a> {
pub author: CommitIdentity<'a>,
pub committer: CommitIdentity<'a>,
pub message: &'a str,
}Expand description
Metadata for one root commit. Message bytes are preserved, including newlines. Names and emails must be nonempty, with no control bytes or angle brackets; messages may contain newlines but not NUL. Invalid metadata returns InvalidObject.
Fields§
§committer: CommitIdentity<'a>§message: &'a strTrait Implementations§
Source§impl<'a> Clone for CommitOptions<'a>
impl<'a> Clone for CommitOptions<'a>
Source§fn clone(&self) -> CommitOptions<'a>
fn clone(&self) -> CommitOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CommitOptions<'a>
Source§impl<'a> Debug for CommitOptions<'a>
impl<'a> Debug for CommitOptions<'a>
Source§impl Default for CommitOptions<'_>
impl Default for CommitOptions<'_>
Source§fn default() -> CommitOptions<'_>
fn default() -> CommitOptions<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CommitOptions<'a>
impl<'a> RefUnwindSafe for CommitOptions<'a>
impl<'a> Send for CommitOptions<'a>
impl<'a> Sync for CommitOptions<'a>
impl<'a> Unpin for CommitOptions<'a>
impl<'a> UnsafeUnpin for CommitOptions<'a>
impl<'a> UnwindSafe for CommitOptions<'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