Struct github_webhook::payload_types::Commit
source · pub struct Commit<'a> {
pub id: &'a str,
pub tree_id: &'a str,
pub distinct: bool,
pub message: &'a str,
pub timestamp: &'a str,
pub url: &'a str,
pub author: Committer<'a>,
pub committer: Committer<'a>,
pub added: Vec<&'a str>,
pub modified: Vec<&'a str>,
pub removed: Vec<&'a str>,
}
Fields§
§id: &'a str
§tree_id: &'a str
§distinct: bool
Whether this commit is distinct from any that have been pushed before.
message: &'a str
The commit message.
timestamp: &'a str
The ISO 8601 timestamp of the commit.
url: &'a str
URL that points to the commit API resource.
committer: Committer<'a>
§added: Vec<&'a str>
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.
modified: Vec<&'a str>
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<&'a str>
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.
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Commit<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Commit<'a>
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<'a> RefUnwindSafe for Commit<'a>
impl<'a> Send for Commit<'a>
impl<'a> Sync for Commit<'a>
impl<'a> Unpin for Commit<'a>
impl<'a> UnwindSafe for Commit<'a>
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