pub struct StatusEventCommit {
pub author: Option<User>,
pub comments_url: String,
pub commit: StatusEventCommitCommit,
pub committer: Option<User>,
pub html_url: String,
pub node_id: String,
pub parents: Vec<StatusEventCommitParentsItem>,
pub sha: String,
pub url: String,
}
Expand description
StatusEventCommit
JSON schema
{
"type": "object",
"required": [
"author",
"comments_url",
"commit",
"committer",
"html_url",
"node_id",
"parents",
"sha",
"url"
],
"properties": {
"author": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"comments_url": {
"type": "string",
"format": "uri"
},
"commit": {
"type": "object",
"required": [
"author",
"comment_count",
"committer",
"message",
"tree",
"url",
"verification"
],
"properties": {
"author": {
"allOf": [
{
"$ref": "#/definitions/committer"
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string"
}
},
"tsAdditionalProperties": false
}
]
},
"comment_count": {
"type": "integer"
},
"committer": {
"allOf": [
{
"$ref": "#/definitions/committer"
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "string"
}
},
"tsAdditionalProperties": false
}
]
},
"message": {
"type": "string"
},
"tree": {
"type": "object",
"required": [
"sha",
"url"
],
"properties": {
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
},
"url": {
"type": "string",
"format": "uri"
},
"verification": {
"type": "object",
"required": [
"payload",
"reason",
"signature",
"verified"
],
"properties": {
"payload": {
"type": [
"string",
"null"
]
},
"reason": {
"type": "string",
"enum": [
"expired_key",
"not_signing_key",
"gpgverify_error",
"gpgverify_unavailable",
"unsigned",
"unknown_signature_type",
"no_user",
"unverified_email",
"bad_email",
"unknown_key",
"malformed_signature",
"invalid",
"valid"
]
},
"signature": {
"type": [
"string",
"null"
]
},
"verified": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"committer": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"html_url": {
"type": "string",
"format": "uri"
},
"node_id": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"required": [
"html_url",
"sha",
"url"
],
"properties": {
"html_url": {
"type": "string",
"format": "uri"
},
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"sha": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
Fields§
§comments_url: String
§commit: StatusEventCommitCommit
§committer: Option<User>
§html_url: String
§node_id: String
§parents: Vec<StatusEventCommitParentsItem>
§sha: String
§url: String
Implementations§
Source§impl StatusEventCommit
impl StatusEventCommit
pub fn builder() -> StatusEventCommit
Trait Implementations§
Source§impl Clone for StatusEventCommit
impl Clone for StatusEventCommit
Source§fn clone(&self) -> StatusEventCommit
fn clone(&self) -> StatusEventCommit
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 StatusEventCommit
impl Debug for StatusEventCommit
Source§impl<'de> Deserialize<'de> for StatusEventCommit
impl<'de> Deserialize<'de> for StatusEventCommit
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<&StatusEventCommit> for StatusEventCommit
impl From<&StatusEventCommit> for StatusEventCommit
Source§fn from(value: &StatusEventCommit) -> Self
fn from(value: &StatusEventCommit) -> Self
Converts to this type from the input type.
Source§impl From<StatusEventCommit> for StatusEventCommit
impl From<StatusEventCommit> for StatusEventCommit
Source§fn from(value: StatusEventCommit) -> Self
fn from(value: StatusEventCommit) -> Self
Converts to this type from the input type.
Source§impl Serialize for StatusEventCommit
impl Serialize for StatusEventCommit
Source§impl TryFrom<StatusEventCommit> for StatusEventCommit
impl TryFrom<StatusEventCommit> for StatusEventCommit
Auto Trait Implementations§
impl Freeze for StatusEventCommit
impl RefUnwindSafe for StatusEventCommit
impl Send for StatusEventCommit
impl Sync for StatusEventCommit
impl Unpin for StatusEventCommit
impl UnwindSafe for StatusEventCommit
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