pub struct CommitIdentity<'a> {
pub name: &'a str,
pub email: &'a str,
pub timestamp: u64,
pub timezone: &'a str,
}Expand description
One commit identity and its recorded time. The offset does not adjust seconds.
Fields§
§name: &'a str§email: &'a str§timestamp: u64Unix seconds in the range 0..=i64::MAX, serialized identically on all targets.
timezone: &'a strA sign and four ASCII digits: hours 00..23, minutes 00..59.
Trait Implementations§
Source§impl<'a> Clone for CommitIdentity<'a>
impl<'a> Clone for CommitIdentity<'a>
Source§fn clone(&self) -> CommitIdentity<'a>
fn clone(&self) -> CommitIdentity<'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 CommitIdentity<'a>
Source§impl<'a> Debug for CommitIdentity<'a>
impl<'a> Debug for CommitIdentity<'a>
Source§impl Default for CommitIdentity<'_>
impl Default for CommitIdentity<'_>
Source§fn default() -> CommitIdentity<'_>
fn default() -> CommitIdentity<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CommitIdentity<'a>
impl<'a> RefUnwindSafe for CommitIdentity<'a>
impl<'a> Send for CommitIdentity<'a>
impl<'a> Sync for CommitIdentity<'a>
impl<'a> Unpin for CommitIdentity<'a>
impl<'a> UnsafeUnpin for CommitIdentity<'a>
impl<'a> UnwindSafe for CommitIdentity<'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