pub struct GitSignature {
pub name: String,
pub email: String,
pub date: DateTime<Utc>,
}Expand description
An identity record stored in a Git commit object.
Corresponds to Git’s user.name and user.email configuration values
together with the timestamp of the action (authoring or committing).
§Examples
let commit = client.get_commit("owner", "repo", "abc123").await?;
let sig = &commit.commit.author;
println!("{} <{}> at {}", sig.name, sig.email, sig.date);Fields§
§name: StringName from Git config (user.name).
email: StringEmail from Git config (user.email).
date: DateTime<Utc>Timestamp of the action (authoring or committing).
Trait Implementations§
Source§impl Clone for GitSignature
impl Clone for GitSignature
Source§fn clone(&self) -> GitSignature
fn clone(&self) -> GitSignature
Returns a duplicate of the value. Read more
1.0.0 · 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 GitSignature
impl Debug for GitSignature
Source§impl<'de> Deserialize<'de> for GitSignature
impl<'de> Deserialize<'de> for GitSignature
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitSignature
impl RefUnwindSafe for GitSignature
impl Send for GitSignature
impl Sync for GitSignature
impl Unpin for GitSignature
impl UnsafeUnpin for GitSignature
impl UnwindSafe for GitSignature
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