pub struct HookDelivery {
pub id: String,
pub hook_id: String,
pub event_kind: String,
pub status: HookDeliveryStatus,
pub attempts: u32,
pub last_error: Option<String>,
pub created_at: OffsetDateTime,
pub delivered_at: Option<OffsetDateTime>,
}Expand description
One delivery attempt lifecycle for a matched event.
Fields§
§id: String§hook_id: String§event_kind: String§status: HookDeliveryStatus§attempts: u32§last_error: Option<String>Coarse last failure class (timeout, http_4xx, http_5xx,
connect); never response bodies or headers.
created_at: OffsetDateTime§delivered_at: Option<OffsetDateTime>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 (const: unstable) · 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<'de> Deserialize<'de> for HookDelivery
impl<'de> Deserialize<'de> for HookDelivery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HookDelivery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HookDelivery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HookDelivery
impl Serialize for HookDelivery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for HookDelivery
impl RefUnwindSafe for HookDelivery
impl Send for HookDelivery
impl Sync for HookDelivery
impl Unpin for HookDelivery
impl UnsafeUnpin 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