pub struct OutboxEntry {
pub outbox_id: OutboxId,
pub command_id: CommandId,
pub destination: String,
pub payload: Value,
pub idempotency_key: IdempotencyKey,
pub status: OutboxStatus,
pub attempt_count: u32,
pub next_attempt_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
One external side effect awaiting dispatch (spec §16.4).
Fields§
§outbox_id: OutboxIdIdentifier of the row.
command_id: CommandIdCommand that produced it.
destination: StringDestination label (e.g. "airline").
payload: ValuePayload for the dispatcher.
idempotency_key: IdempotencyKeyIdempotency key forwarded to the external system.
status: OutboxStatusCurrent status.
attempt_count: u32Attempts made so far.
next_attempt_at: Option<DateTime<Utc>>Earliest next attempt.
created_at: DateTime<Utc>Creation time.
completed_at: Option<DateTime<Utc>>Completion time.
Trait Implementations§
Source§impl Clone for OutboxEntry
impl Clone for OutboxEntry
Source§impl Debug for OutboxEntry
impl Debug for OutboxEntry
Source§impl<'de> Deserialize<'de> for OutboxEntry
impl<'de> Deserialize<'de> for OutboxEntry
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
impl Eq for OutboxEntry
Source§impl PartialEq for OutboxEntry
impl PartialEq for OutboxEntry
Source§impl Serialize for OutboxEntry
impl Serialize for OutboxEntry
impl StructuralPartialEq for OutboxEntry
Auto Trait Implementations§
impl Freeze for OutboxEntry
impl RefUnwindSafe for OutboxEntry
impl Send for OutboxEntry
impl Sync for OutboxEntry
impl Unpin for OutboxEntry
impl UnsafeUnpin for OutboxEntry
impl UnwindSafe for OutboxEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.