pub struct CommitResponse {
pub sha: String,
pub branch: String,
pub message: String,
}Expand description
Successful response from create_commit.
The generated PostByOrgByRepoCommits201Response incorrectly marks all
fields as Option<String>; the API always returns them.
Fields§
§sha: StringThe SHA of the newly created commit.
branch: StringThe branch the commit was created on.
message: StringThe commit message.
Trait Implementations§
Source§impl Clone for CommitResponse
impl Clone for CommitResponse
Source§fn clone(&self) -> CommitResponse
fn clone(&self) -> CommitResponse
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 CommitResponse
impl Debug for CommitResponse
Source§impl<'de> Deserialize<'de> for CommitResponse
impl<'de> Deserialize<'de> for CommitResponse
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 CommitResponse
impl PartialEq for CommitResponse
Source§impl Serialize for CommitResponse
impl Serialize for CommitResponse
impl StructuralPartialEq for CommitResponse
Auto Trait Implementations§
impl Freeze for CommitResponse
impl RefUnwindSafe for CommitResponse
impl Send for CommitResponse
impl Sync for CommitResponse
impl Unpin for CommitResponse
impl UnwindSafe for CommitResponse
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