pub struct ClaimedOutboxEvent {
pub id: i64,
pub stream: String,
pub event_key: String,
pub event_kind: String,
pub payload_json: String,
pub attempts: i32,
pub claim_key: String,
pub claim_expires_at_epoch: i64,
}Expand description
Event exclusively claimed by one worker until its lease expires.
Fields§
§id: i64Stable database identifier.
stream: StringExplicit application or tenant stream.
event_key: StringIdempotency key unique within the stream.
event_kind: StringBounded event kind used for dispatch routing.
payload_json: StringSerialized JSON payload.
attempts: i32Number of successful claims, including this one.
claim_key: StringUnpredictable token required to acknowledge or fail this claim.
claim_expires_at_epoch: i64Unix timestamp when another worker may reclaim this event.
Implementations§
Trait Implementations§
Source§impl Clone for ClaimedOutboxEvent
impl Clone for ClaimedOutboxEvent
Source§impl Debug for ClaimedOutboxEvent
impl Debug for ClaimedOutboxEvent
Auto Trait Implementations§
impl Freeze for ClaimedOutboxEvent
impl RefUnwindSafe for ClaimedOutboxEvent
impl Send for ClaimedOutboxEvent
impl Sync for ClaimedOutboxEvent
impl Unpin for ClaimedOutboxEvent
impl UnsafeUnpin for ClaimedOutboxEvent
impl UnwindSafe for ClaimedOutboxEvent
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