pub struct PushHook {Show 15 fields
pub object_kind: String,
pub before: String,
pub after: String,
pub ref_: String,
pub checkout_sha: Option<String>,
pub message: Option<String>,
pub user_id: u64,
pub user_name: String,
pub user_username: String,
pub user_email: Option<String>,
pub user_avatar: Option<String>,
pub project_id: u64,
pub project: ProjectHookAttrs,
pub commits: Vec<CommitHookAttrs>,
pub total_commits_count: u64,
}
Expand description
A push hook.
Fields§
§object_kind: String
The event which occurred.
before: String
The old object ID of the ref before the push.
after: String
The new object ID of the ref after the push.
ref_: String
The name of the reference which has been pushed.
checkout_sha: Option<String>
The new object ID of the ref after the push.
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_username: String
The username of the user who pushed.
user_email: Option<String>
The email address of the user who pushed.
user_avatar: Option<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<'de> Deserialize<'de> for PushHook
impl<'de> Deserialize<'de> for PushHook
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 PushHook
impl RefUnwindSafe for PushHook
impl Send for PushHook
impl Sync for PushHook
impl Unpin for PushHook
impl UnwindSafe for PushHook
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