pub struct Commit {
pub added: Vec<String>,
pub author: Committer,
pub committer: Committer,
pub distinct: bool,
pub id: String,
pub message: String,
pub modified: Vec<String>,
pub removed: Vec<String>,
pub timestamp: DateTime<Utc>,
pub tree_id: String,
pub url: String,
}
Expand description
Commit
JSON schema
{
"title": "Commit",
"type": "object",
"required": [
"added",
"author",
"committer",
"distinct",
"id",
"message",
"modified",
"removed",
"timestamp",
"tree_id",
"url"
],
"properties": {
"added": {
"description": "An array of files added in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were added.",
"type": "array",
"items": {
"type": "string"
}
},
"author": {
"$ref": "#/definitions/committer"
},
"committer": {
"$ref": "#/definitions/committer"
},
"distinct": {
"description": "Whether this commit is distinct from any that have been pushed before.",
"type": "boolean"
},
"id": {
"type": "string"
},
"message": {
"description": "The commit message.",
"type": "string"
},
"modified": {
"description": "An array of files modified by the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were modified.",
"type": "array",
"items": {
"type": "string"
}
},
"removed": {
"description": "An array of files removed in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were removed.",
"type": "array",
"items": {
"type": "string"
}
},
"timestamp": {
"description": "The ISO 8601 timestamp of the commit.",
"type": "string",
"format": "date-time"
},
"tree_id": {
"type": "string"
},
"url": {
"description": "URL that points to the commit API resource.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§added: Vec<String>
An array of files added in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were added.
committer: Committer
§distinct: bool
Whether this commit is distinct from any that have been pushed before.
id: String
§message: String
The commit message.
modified: Vec<String>
An array of files modified by the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were modified.
removed: Vec<String>
An array of files removed in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were removed.
timestamp: DateTime<Utc>
The ISO 8601 timestamp of the commit.
tree_id: String
§url: String
URL that points to the commit API resource.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commit
impl<'de> Deserialize<'de> for Commit
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
Auto Trait Implementations§
impl Freeze for Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnwindSafe for Commit
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