pub struct OutboxItem {
pub id: String,
pub tenant_id: String,
pub subject_id: String,
pub channel: String,
pub recipient: String,
pub notification: Notification,
pub attempts: u32,
pub lease_version: i64,
}Expand description
A durably queued notification claimed by a worker.
Fields§
§id: StringStable identifier of this record.
tenant_id: StringTenant that owns this record.
subject_id: StringSubject (user or service principal) acting on or owning this record.
channel: StringChannel the notification is routed to.
recipient: StringChannel-specific recipient address.
notification: NotificationThe notification to deliver.
attempts: u32Delivery attempts made so far.
lease_version: i64Fencing token bumped on every lease acquisition; stale holders cannot write.
Trait Implementations§
Source§impl Clone for OutboxItem
impl Clone for OutboxItem
Source§fn clone(&self) -> OutboxItem
fn clone(&self) -> OutboxItem
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 OutboxItem
impl Debug for OutboxItem
Source§impl PartialEq for OutboxItem
impl PartialEq for OutboxItem
impl StructuralPartialEq for OutboxItem
Auto Trait Implementations§
impl Freeze for OutboxItem
impl RefUnwindSafe for OutboxItem
impl Send for OutboxItem
impl Sync for OutboxItem
impl Unpin for OutboxItem
impl UnsafeUnpin for OutboxItem
impl UnwindSafe for OutboxItem
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