pub struct RequestAttempt {Show 13 fields
pub created_at: DateTime<Utc>,
pub delay_until: Option<DateTime<Utc>>,
pub event: RequestAttemptEvent,
pub event_id: Uuid,
pub failed_at: Option<DateTime<Utc>>,
pub http_response_status: Option<i32>,
pub picked_at: Option<DateTime<Utc>>,
pub request_attempt_id: Uuid,
pub response_id: Option<Uuid>,
pub retry_count: i32,
pub status: RequestAttemptStatus,
pub subscription: RequestAttemptSubscription,
pub succeeded_at: Option<DateTime<Utc>>,
}Expand description
The RequestAttempt the API declares.
Fields§
§created_at: DateTime<Utc>created_at.
delay_until: Option<DateTime<Utc>>delay_until.
event: RequestAttemptEventevent.
event_id: Uuidevent_id.
failed_at: Option<DateTime<Utc>>failed_at.
http_response_status: Option<i32>http_response_status.
picked_at: Option<DateTime<Utc>>picked_at.
request_attempt_id: Uuidrequest_attempt_id.
response_id: Option<Uuid>response_id.
retry_count: i32retry_count.
status: RequestAttemptStatusstatus: Status of a request attempt. The ‘type’ field indicates the status variant. - waiting: {type, since, until} - Scheduled for future delivery - pending: {type, since} - Ready to be processed - in_progre
subscription: RequestAttemptSubscriptionsubscription.
succeeded_at: Option<DateTime<Utc>>succeeded_at.
Trait Implementations§
Source§impl Clone for RequestAttempt
impl Clone for RequestAttempt
Source§fn clone(&self) -> RequestAttempt
fn clone(&self) -> RequestAttempt
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 RequestAttempt
impl Debug for RequestAttempt
Source§impl<'de> Deserialize<'de> for RequestAttempt
impl<'de> Deserialize<'de> for RequestAttempt
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 RequestAttempt
impl RefUnwindSafe for RequestAttempt
impl Send for RequestAttempt
impl Sync for RequestAttempt
impl Unpin for RequestAttempt
impl UnsafeUnpin for RequestAttempt
impl UnwindSafe for RequestAttempt
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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