Struct roctogen::models::PostGitCreateCommit [−][src]
pub struct PostGitCreateCommit { pub message: Option<String>, pub tree: Option<String>, pub parents: Option<Vec<String>>, pub author: Option<ReposownerrepogitcommitsAuthor>, pub committer: Option<ReposownerrepogitcommitsCommitter>, pub signature: Option<String>, }
Fields
message: Option<String>
The commit message
tree: Option<String>
The 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<ReposownerrepogitcommitsCommitter>
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.
Trait Implementations
impl Clone for PostGitCreateCommit
[src]
impl Clone for PostGitCreateCommit
[src]fn clone(&self) -> PostGitCreateCommit
[src]
fn clone(&self) -> PostGitCreateCommit
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PostGitCreateCommit
[src]
impl Debug for PostGitCreateCommit
[src]impl Default for PostGitCreateCommit
[src]
impl Default for PostGitCreateCommit
[src]fn default() -> PostGitCreateCommit
[src]
fn default() -> PostGitCreateCommit
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for PostGitCreateCommit
[src]
impl<'de> Deserialize<'de> for PostGitCreateCommit
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<PostGitCreateCommit> for PostGitCreateCommit
[src]
impl PartialEq<PostGitCreateCommit> for PostGitCreateCommit
[src]fn eq(&self, other: &PostGitCreateCommit) -> bool
[src]
fn eq(&self, other: &PostGitCreateCommit) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PostGitCreateCommit) -> bool
[src]
fn ne(&self, other: &PostGitCreateCommit) -> bool
[src]This method tests for !=
.
impl Serialize for PostGitCreateCommit
[src]
impl Serialize for PostGitCreateCommit
[src]impl StructuralPartialEq for PostGitCreateCommit
[src]
Auto Trait Implementations
impl RefUnwindSafe for PostGitCreateCommit
impl Send for PostGitCreateCommit
impl Sync for PostGitCreateCommit
impl Unpin for PostGitCreateCommit
impl UnwindSafe for PostGitCreateCommit
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,