pub struct HookDeliveryItem {
pub id: i32,
pub guid: String,
pub delivered_at: String,
pub redelivery: bool,
pub duration: f64,
pub status: String,
pub status_code: i32,
pub event: String,
pub action: Option<String>,
pub installation_id: Option<i32>,
pub repository_id: Option<i32>,
}
Expand description
HookDeliveryItem : Delivery made by a webhook, without request and response information.
Fields§
§id: i32
Unique identifier of the webhook delivery.
guid: String
Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).
delivered_at: String
Time when the webhook delivery occurred.
redelivery: bool
Whether the webhook delivery is a redelivery.
duration: f64
Time spent delivering.
status: String
Describes the response returned after attempting the delivery.
status_code: i32
Status code received when delivery was made.
event: String
The event that triggered the delivery.
action: Option<String>
The type of activity for the event that triggered the delivery.
installation_id: Option<i32>
The id of the GitHub App installation associated with this event.
repository_id: Option<i32>
The id of the repository associated with this event.
Implementations§
Source§impl HookDeliveryItem
impl HookDeliveryItem
Sourcepub fn new(
id: i32,
guid: String,
delivered_at: String,
redelivery: bool,
duration: f64,
status: String,
status_code: i32,
event: String,
action: Option<String>,
installation_id: Option<i32>,
repository_id: Option<i32>,
) -> HookDeliveryItem
pub fn new( id: i32, guid: String, delivered_at: String, redelivery: bool, duration: f64, status: String, status_code: i32, event: String, action: Option<String>, installation_id: Option<i32>, repository_id: Option<i32>, ) -> HookDeliveryItem
Delivery made by a webhook, without request and response information.
Trait Implementations§
Source§impl Clone for HookDeliveryItem
impl Clone for HookDeliveryItem
Source§fn clone(&self) -> HookDeliveryItem
fn clone(&self) -> HookDeliveryItem
Returns a duplicate 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 HookDeliveryItem
impl Debug for HookDeliveryItem
Source§impl Default for HookDeliveryItem
impl Default for HookDeliveryItem
Source§fn default() -> HookDeliveryItem
fn default() -> HookDeliveryItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookDeliveryItem
impl<'de> Deserialize<'de> for HookDeliveryItem
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 HookDeliveryItem
impl PartialEq for HookDeliveryItem
Source§impl Serialize for HookDeliveryItem
impl Serialize for HookDeliveryItem
impl StructuralPartialEq for HookDeliveryItem
Auto Trait Implementations§
impl Freeze for HookDeliveryItem
impl RefUnwindSafe for HookDeliveryItem
impl Send for HookDeliveryItem
impl Sync for HookDeliveryItem
impl Unpin for HookDeliveryItem
impl UnwindSafe for HookDeliveryItem
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