pub struct OutboxItem {Show 13 fields
pub id: NotificationId,
pub tenant_id: TenantId,
pub subject_id: SubjectId,
pub channel: String,
pub recipient: String,
pub notification: Notification,
pub status: NotificationStatus,
pub attempts: u32,
pub max_attempts: u32,
pub lease_version: i64,
pub last_error: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Durable notification projection.
Fields§
§id: NotificationIdStable identity.
tenant_id: TenantIdOwning tenant.
subject_id: SubjectIdActing subject.
channel: StringRegistered transport channel.
recipient: StringChannel-specific recipient.
notification: NotificationContent to deliver.
status: NotificationStatusCurrent durable state.
attempts: u32Attempts claimed so far.
max_attempts: u32Maximum attempts before dead-lettering.
lease_version: i64Current lease fence.
last_error: Option<String>Last redacted failure class, if any.
created_at: DateTime<Utc>Creation time.
updated_at: DateTime<Utc>Last projection update.
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<'de> Deserialize<'de> for OutboxItem
impl<'de> Deserialize<'de> for OutboxItem
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
Source§impl PartialEq for OutboxItem
impl PartialEq for OutboxItem
Source§impl Serialize for OutboxItem
impl Serialize 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