pub struct HookDelivery {Show 14 fields
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>,
pub url: Option<String>,
pub request: Box<HookDeliveryRequest>,
pub response: Box<HookDeliveryResponse>,
}
Expand description
HookDelivery : Delivery made by a webhook.
Fields§
§id: i32
Unique identifier of the 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 delivery was delivered.
redelivery: bool
Whether the delivery is a redelivery.
duration: f64
Time spent delivering.
status: String
Description of the status of the attempted 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.
url: Option<String>
The URL target of the delivery.
request: Box<HookDeliveryRequest>
§response: Box<HookDeliveryResponse>
Implementations§
Source§impl HookDelivery
impl HookDelivery
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>,
request: HookDeliveryRequest,
response: HookDeliveryResponse,
) -> HookDelivery
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>, request: HookDeliveryRequest, response: HookDeliveryResponse, ) -> HookDelivery
Delivery made by a webhook.
Trait Implementations§
Source§impl Clone for HookDelivery
impl Clone for HookDelivery
Source§fn clone(&self) -> HookDelivery
fn clone(&self) -> HookDelivery
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 HookDelivery
impl Debug for HookDelivery
Source§impl Default for HookDelivery
impl Default for HookDelivery
Source§fn default() -> HookDelivery
fn default() -> HookDelivery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HookDelivery
impl<'de> Deserialize<'de> for HookDelivery
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 HookDelivery
impl PartialEq for HookDelivery
Source§impl Serialize for HookDelivery
impl Serialize for HookDelivery
impl StructuralPartialEq for HookDelivery
Auto Trait Implementations§
impl Freeze for HookDelivery
impl RefUnwindSafe for HookDelivery
impl Send for HookDelivery
impl Sync for HookDelivery
impl Unpin for HookDelivery
impl UnwindSafe for HookDelivery
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