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>
impl<'a> Copy for CommitOptions<'a>
Source§impl<'a> Debug for CommitOptions<'a>
impl<'a> Debug for CommitOptions<'a>
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