pub struct PathAuthor {
pub name: String,
pub at: i64,
}Expand description
Who last changed one path, and when — see Repo::last_authors.
Fields§
§name: StringThe commit author’s name, exactly as git recorded it. The bare identity:
any prefix a format requires (OKF’s human:, §7) is the renderer’s.
at: i64That commit’s commit time, in seconds since the Unix epoch, UTC.
Carried alongside the name because the two are one claim. Stamping a person’s confirmation with the render’s clock would date a review to a moment the reviewer had nothing to do with, and would make the bundle differ on every render for a document nobody touched.
Trait Implementations§
Source§impl Clone for PathAuthor
impl Clone for PathAuthor
Source§fn clone(&self) -> PathAuthor
fn clone(&self) -> PathAuthor
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 moreSource§impl Debug for PathAuthor
impl Debug for PathAuthor
impl Eq for PathAuthor
Source§impl PartialEq for PathAuthor
impl PartialEq for PathAuthor
impl StructuralPartialEq for PathAuthor
Auto Trait Implementations§
impl Freeze for PathAuthor
impl RefUnwindSafe for PathAuthor
impl Send for PathAuthor
impl Sync for PathAuthor
impl Unpin for PathAuthor
impl UnsafeUnpin for PathAuthor
impl UnwindSafe for PathAuthor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.