Struct github_rest::model::commits::Commit
source · pub struct Commit {
pub url: String,
pub sha: String,
pub node_id: String,
pub html_url: String,
pub comments_url: String,
pub commit: CommitObject,
pub author: SimpleUser,
pub committer: SimpleUser,
pub parents: Vec<Parent>,
}
Expand description
Fields§
§url: String
§sha: String
§node_id: String
§html_url: String
§comments_url: String
§commit: CommitObject
§committer: SimpleUser
§parents: Vec<Parent>
Implementations§
source§impl Commit
impl Commit
pub async fn add_comment_arc( &self, client: Arc<&impl Requester>, body: String, path: Option<String>, position: Option<String> ) -> Result<CommitComment, GithubRestError>
sourcepub async fn add_comment(
&self,
client: &impl Requester,
body: String,
path: Option<String>,
position: Option<String>
) -> Result<CommitComment, GithubRestError>
pub async fn add_comment( &self, client: &impl Requester, body: String, path: Option<String>, position: Option<String> ) -> Result<CommitComment, GithubRestError>
Adds a comment to the current instance.
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
source§impl PartialEq<Commit> for Commit
impl PartialEq<Commit> for Commit
impl StructuralPartialEq for Commit
Auto Trait Implementations§
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