Struct gitlab::systemhooks::PushSystemHook
source · pub struct PushSystemHook {Show 16 fields
pub event_name: PushEvent,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub before: String,
pub after: String,
pub ref_: String,
pub checkout_sha: String,
pub message: Option<String>,
pub user_id: u64,
pub user_name: String,
pub user_email: String,
pub user_avatar: String,
pub project_id: u64,
pub project: ProjectHookAttrs,
pub commits: Vec<CommitHookAttrs>,
pub total_commits_count: u64,
}
Expand description
A push hook.
Fields§
§event_name: PushEvent
The event which occurred.
created_at: DateTime<Utc>
When the push occurred.
updated_at: DateTime<Utc>
When the push
before: String
The old object ID of the ref that was pushed.
after: String
The new object ID of the ref that was pushed.
ref_: String
The name of the reference that was pushed.
checkout_sha: String
The new object ID of the ref that was pushed.
message: Option<String>
The message for the push (used for annotated tags).
user_id: u64
The ID of the user who pushed.
user_name: String
The name of the user who pushed.
user_email: String
The email address of the user who pushed.
user_avatar: String
The URL of the user’s avatar.
project_id: u64
The ID of the project pushed to.
project: ProjectHookAttrs
Attributes of the project.
commits: Vec<CommitHookAttrs>
The commits pushed to the repository.
Limited to 20 commits.
total_commits_count: u64
The total number of commits pushed.
Trait Implementations§
source§impl Clone for PushSystemHook
impl Clone for PushSystemHook
source§fn clone(&self) -> PushSystemHook
fn clone(&self) -> PushSystemHook
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 PushSystemHook
impl Debug for PushSystemHook
source§impl<'de> Deserialize<'de> for PushSystemHook
impl<'de> Deserialize<'de> for PushSystemHook
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
Auto Trait Implementations§
impl Freeze for PushSystemHook
impl RefUnwindSafe for PushSystemHook
impl Send for PushSystemHook
impl Sync for PushSystemHook
impl Unpin for PushSystemHook
impl UnwindSafe for PushSystemHook
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more