pub struct CommitResponse {
pub sha: String,
pub commit: CommitMeta,
pub parents: Vec<CommitParent>,
pub files: Vec<CommitFileItem>,
pub html_url: Option<String>,
pub truncated: bool,
}Expand description
GET /repos/{o}/{r}/commits/{sha} (v1.6, plans/0028): the commit
viewer’s detail. status stays raw — GitHub also emits
“changed”/“unchanged”, which the provider seam degrades to
modified.
Fields§
§sha: String§commit: CommitMeta§parents: Vec<CommitParent>§files: Vec<CommitFileItem>§html_url: Option<String>§truncated: boolTrait Implementations§
Source§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 CommitDetail
impl From<CommitResponse> for CommitDetail
Source§fn from(response: CommitResponse) -> Self
fn from(response: CommitResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CommitResponse
impl Freeze for CommitResponse
impl Move for CommitResponse
impl RefUnwindSafe for CommitResponse
impl Send for CommitResponse
impl Sync for CommitResponse
impl Unpin for CommitResponse
impl UnsafeUnpin 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