pub struct CommitUser {
pub date: String,
pub email: String,
pub name: String,
}
Expand description
Represents information about a user in the context of a commit.
NOTE: This is not the same as the User struct. A CommitUser is not guaranteed to be a valid Gitea user. A commit author can set the name and email tracked in this struct to anything they want.
Fields§
§date: String
Date the commit was authored.
email: String
Email of the user.
name: String
Full name of the user.
Trait Implementations§
Source§impl Clone for CommitUser
impl Clone for CommitUser
Source§fn clone(&self) -> CommitUser
fn clone(&self) -> CommitUser
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommitUser
impl Debug for CommitUser
Source§impl Default for CommitUser
impl Default for CommitUser
Source§fn default() -> CommitUser
fn default() -> CommitUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitUserwhere
CommitUser: Default,
impl<'de> Deserialize<'de> for CommitUserwhere
CommitUser: Default,
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 CommitUser
impl RefUnwindSafe for CommitUser
impl Send for CommitUser
impl Sync for CommitUser
impl Unpin for CommitUser
impl UnwindSafe for CommitUser
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