Struct github_rest::model::repositories::events::PushEvent
source · pub struct PushEvent {
pub ref_field: String,
pub before: String,
pub after: String,
pub pusher: Pusher,
pub created: bool,
pub deleted: bool,
pub forced: bool,
pub base_ref: Value,
pub compare: String,
pub commits: Vec<Commit>,
pub head_commit: Option<HeadCommit>,
pub event_info: RepoEventInfo,
}
Expand description
Fields§
§ref_field: String
§before: String
§after: String
§pusher: Pusher
§created: bool
§deleted: bool
§forced: bool
§base_ref: Value
§compare: String
§commits: Vec<Commit>
§head_commit: Option<HeadCommit>
§event_info: RepoEventInfo
Implementations§
source§impl PushEvent
impl PushEvent
sourcepub async fn add_comment_to_commit(
&self,
client: &impl Requester,
body: String,
path: Option<String>,
position: Option<String>
) -> Result<CommitComment, GithubRestError>
pub async fn add_comment_to_commit( &self, client: &impl Requester, body: String, path: Option<String>, position: Option<String> ) -> Result<CommitComment, GithubRestError>
Adds a comment to the commit that triggered the event.
See also: https://docs.github.com/en/rest/reference/commits#create-a-commit-comment
Trait Implementations§
source§impl AsRef<RepoEventInfo> for PushEvent
impl AsRef<RepoEventInfo> for PushEvent
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<'de> Deserialize<'de> for PushEvent
impl<'de> Deserialize<'de> for PushEvent
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<PushEvent> for PushEvent
impl PartialEq<PushEvent> for PushEvent
impl StructuralPartialEq for PushEvent
Auto Trait Implementations§
impl RefUnwindSafe for PushEvent
impl Send for PushEvent
impl Sync for PushEvent
impl Unpin for PushEvent
impl UnwindSafe for PushEvent
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