#[non_exhaustive]pub struct PushEventPayload {
pub push_id: PushId,
pub size: u64,
pub distinct_size: u64,
pub ref: String,
pub head: String,
pub before: String,
pub commits: Vec<Commit>,
}
Expand description
The payload in a super::EventPayload::PushEvent
type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.push_id: PushId
§size: u64
§distinct_size: u64
§ref: String
§head: String
§before: String
§commits: Vec<Commit>
Trait Implementations§
source§impl Clone for PushEventPayload
impl Clone for PushEventPayload
source§fn clone(&self) -> PushEventPayload
fn clone(&self) -> PushEventPayload
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 PushEventPayload
impl Debug for PushEventPayload
source§impl<'de> Deserialize<'de> for PushEventPayload
impl<'de> Deserialize<'de> for PushEventPayload
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 for PushEventPayload
impl PartialEq for PushEventPayload
source§fn eq(&self, other: &PushEventPayload) -> bool
fn eq(&self, other: &PushEventPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PushEventPayload
impl Serialize for PushEventPayload
impl StructuralPartialEq for PushEventPayload
Auto Trait Implementations§
impl Freeze for PushEventPayload
impl RefUnwindSafe for PushEventPayload
impl Send for PushEventPayload
impl Sync for PushEventPayload
impl Unpin for PushEventPayload
impl UnwindSafe for PushEventPayload
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