pub struct GitCreateCommitRequest {
pub message: String,
pub tree: String,
pub parents: Option<Vec<String>>,
pub author: Option<Box<GitCreateCommitRequestAuthor>>,
pub committer: Option<Box<GitCreateCommitRequestCommitter>>,
pub signature: Option<String>,
}Fields§
§message: StringThe commit message
tree: StringThe SHA of the tree object this commit points to
parents: Option<Vec<String>>The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
committer: Option<Box<GitCreateCommitRequestCommitter>>§signature: Option<String>The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits.
Implementations§
Source§impl GitCreateCommitRequest
impl GitCreateCommitRequest
pub fn new(message: String, tree: String) -> GitCreateCommitRequest
Trait Implementations§
Source§impl Clone for GitCreateCommitRequest
impl Clone for GitCreateCommitRequest
Source§fn clone(&self) -> GitCreateCommitRequest
fn clone(&self) -> GitCreateCommitRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitCreateCommitRequest
impl Debug for GitCreateCommitRequest
Source§impl Default for GitCreateCommitRequest
impl Default for GitCreateCommitRequest
Source§fn default() -> GitCreateCommitRequest
fn default() -> GitCreateCommitRequest
Source§impl<'de> Deserialize<'de> for GitCreateCommitRequest
impl<'de> Deserialize<'de> for GitCreateCommitRequest
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>,
Source§impl PartialEq for GitCreateCommitRequest
impl PartialEq for GitCreateCommitRequest
Source§fn eq(&self, other: &GitCreateCommitRequest) -> bool
fn eq(&self, other: &GitCreateCommitRequest) -> bool
self and other values to be equal, and is used by ==.