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,
}
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
Expand description
A push hook.
Fields§
§object_kind: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The event which occurred.
before: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The old object ID of the ref before the push.
after: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The new object ID of the ref after the push.
ref_: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The name of the reference which has been pushed.
checkout_sha: Option<String>
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The new object ID of the ref after the push.
message: Option<String>
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The message for the push (used for annotated tags).
user_id: u64
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The ID of the user who pushed.
user_name: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The name of the user who pushed.
user_username: String
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The username of the user who pushed.
user_email: Option<String>
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The email address of the user who pushed.
user_avatar: Option<String>
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The URL of the user’s avatar.
project_id: u64
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The ID of the project pushed to.
project: ProjectHookAttrs
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
Attributes of the project.
commits: Vec<CommitHookAttrs>
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The commits pushed to the repository.
Limited to 20 commits.
total_commits_count: u64
👎Deprecated since 0.1705.1: stable hook APIs are not feasible
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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