pub struct GitCreateCommitRequestAuthor {
pub name: String,
pub email: String,
pub date: Option<String>,
}
Expand description
GitCreateCommitRequestAuthor : Information about the author of the commit. By default, the author
will be the authenticated user and the current date. See the author
and committer
object below for details.
Fields§
§name: String
The name of the author (or committer) of the commit
email: String
The email of the author (or committer) of the commit
date: Option<String>
Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
Implementations§
Source§impl GitCreateCommitRequestAuthor
impl GitCreateCommitRequestAuthor
Sourcepub fn new(name: String, email: String) -> GitCreateCommitRequestAuthor
pub fn new(name: String, email: String) -> GitCreateCommitRequestAuthor
Information about the author of the commit. By default, the author
will be the authenticated user and the current date. See the author
and committer
object below for details.
Trait Implementations§
Source§impl Clone for GitCreateCommitRequestAuthor
impl Clone for GitCreateCommitRequestAuthor
Source§fn clone(&self) -> GitCreateCommitRequestAuthor
fn clone(&self) -> GitCreateCommitRequestAuthor
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 GitCreateCommitRequestAuthor
impl Debug for GitCreateCommitRequestAuthor
Source§impl Default for GitCreateCommitRequestAuthor
impl Default for GitCreateCommitRequestAuthor
Source§fn default() -> GitCreateCommitRequestAuthor
fn default() -> GitCreateCommitRequestAuthor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitCreateCommitRequestAuthor
impl<'de> Deserialize<'de> for GitCreateCommitRequestAuthor
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
Source§impl PartialEq for GitCreateCommitRequestAuthor
impl PartialEq for GitCreateCommitRequestAuthor
Source§fn eq(&self, other: &GitCreateCommitRequestAuthor) -> bool
fn eq(&self, other: &GitCreateCommitRequestAuthor) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GitCreateCommitRequestAuthor
Auto Trait Implementations§
impl Freeze for GitCreateCommitRequestAuthor
impl RefUnwindSafe for GitCreateCommitRequestAuthor
impl Send for GitCreateCommitRequestAuthor
impl Sync for GitCreateCommitRequestAuthor
impl Unpin for GitCreateCommitRequestAuthor
impl UnwindSafe for GitCreateCommitRequestAuthor
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