Struct github_rest::model::commits::events::CommitCommentEvent
source · pub struct CommitCommentEvent {
pub action: CommitCommentAction,
pub comment: CommitComment,
pub event_info: RepoEventInfo,
}
Expand description
Fields§
§action: CommitCommentAction
§comment: CommitComment
§event_info: RepoEventInfo
Implementations§
source§impl CommitCommentEvent
impl CommitCommentEvent
sourcepub async fn get_commit<T>(
&self,
client: &T,
options: Option<&GetCommitBody>
) -> Result<Commit, GithubRestError>where
T: Requester,
pub async fn get_commit<T>( &self, client: &T, options: Option<&GetCommitBody> ) -> Result<Commit, GithubRestError>where T: Requester,
Get the commit that the current comment refers to.
See also: https://docs.github.com/en/rest/reference/commits#get-a-commit
Trait Implementations§
source§impl AsRef<RepoEventInfo> for CommitCommentEvent
impl AsRef<RepoEventInfo> for CommitCommentEvent
source§fn as_ref(&self) -> &RepoEventInfo
fn as_ref(&self) -> &RepoEventInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for CommitCommentEvent
impl Clone for CommitCommentEvent
source§fn clone(&self) -> CommitCommentEvent
fn clone(&self) -> CommitCommentEvent
Returns a copy 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 CommitCommentEvent
impl Debug for CommitCommentEvent
source§impl Default for CommitCommentEvent
impl Default for CommitCommentEvent
source§fn default() -> CommitCommentEvent
fn default() -> CommitCommentEvent
Returns the “default value” for a type. Read more
source§impl Deref for CommitCommentEvent
impl Deref for CommitCommentEvent
source§impl<'de> Deserialize<'de> for CommitCommentEvent
impl<'de> Deserialize<'de> for CommitCommentEvent
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 Event<'_> for CommitCommentEvent
impl Event<'_> for CommitCommentEvent
source§impl PartialEq<CommitCommentEvent> for CommitCommentEvent
impl PartialEq<CommitCommentEvent> for CommitCommentEvent
source§fn eq(&self, other: &CommitCommentEvent) -> bool
fn eq(&self, other: &CommitCommentEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CommitCommentEvent
impl Serialize for CommitCommentEvent
impl StructuralPartialEq for CommitCommentEvent
Auto Trait Implementations§
impl RefUnwindSafe for CommitCommentEvent
impl Send for CommitCommentEvent
impl Sync for CommitCommentEvent
impl Unpin for CommitCommentEvent
impl UnwindSafe for CommitCommentEvent
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