pub struct CommitResponse {
pub author: Option<CommitResponseAuthor>,
pub commit: CommitInfo,
pub committer: Option<CommitResponseCommitter>,
pub html_url: String,
pub parents: Vec<HashMap<String, String>>,
pub sha: String,
}Expand description
Single commit response.
JSON schema
{
"title": "CommitResponse",
"description": "Single commit response.",
"type": "object",
"required": [
"commit",
"html_url",
"sha"
],
"properties": {
"author": {
"description": "GitHub author info",
"anyOf": [
{
"$ref": "#/components/schemas/CommitUserInfo"
},
{
"type": [
"object",
"null"
]
}
]
},
"commit": {
"$ref": "#/components/schemas/CommitInfo"
},
"committer": {
"description": "GitHub committer info",
"anyOf": [
{
"$ref": "#/components/schemas/CommitUserInfo"
},
{
"type": [
"object",
"null"
]
}
]
},
"html_url": {
"title": "Html Url",
"description": "GitHub commit URL",
"type": "string"
},
"parents": {
"title": "Parents",
"description": "Parent commits",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"sha": {
"title": "Sha",
"description": "Commit SHA",
"type": "string"
}
}
}Fields§
GitHub author info
commit: CommitInfo§committer: Option<CommitResponseCommitter>GitHub committer info
html_url: StringGitHub commit URL
parents: Vec<HashMap<String, String>>Parent commits
sha: StringCommit SHA
Implementations§
Source§impl CommitResponse
impl CommitResponse
pub fn builder() -> CommitResponse
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 From<&CommitResponse> for CommitResponse
impl From<&CommitResponse> for CommitResponse
Source§fn from(value: &CommitResponse) -> Self
fn from(value: &CommitResponse) -> Self
Converts to this type from the input type.
Source§impl From<CommitResponse> for CommitResponse
impl From<CommitResponse> for CommitResponse
Source§fn from(value: CommitResponse) -> Self
fn from(value: CommitResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CommitResponse
impl Serialize for CommitResponse
Source§impl TryFrom<CommitResponse> for CommitResponse
impl TryFrom<CommitResponse> for CommitResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CommitResponse) -> Result<Self, ConversionError>
fn try_from(value: CommitResponse) -> Result<Self, ConversionError>
Performs the conversion.
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