pub struct InboxEvent {
pub id: String,
pub kind: String,
pub ts: u64,
pub principal: Option<String>,
pub payload: Value,
pub status: InboxStatus,
}Expand description
A write-ahead inbox event: durably recorded before it is acted on, so a crash between arrival and handling replays it instead of dropping it.
Fields§
§id: String§kind: String§ts: u64§principal: Option<String>§payload: Value§status: InboxStatusImplementations§
Source§impl InboxEvent
impl InboxEvent
Trait Implementations§
Source§impl Clone for InboxEvent
impl Clone for InboxEvent
Source§fn clone(&self) -> InboxEvent
fn clone(&self) -> InboxEvent
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 InboxEvent
impl Debug for InboxEvent
Source§impl<'de> Deserialize<'de> for InboxEvent
impl<'de> Deserialize<'de> for InboxEvent
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 InboxEvent
impl PartialEq for InboxEvent
Source§impl Serialize for InboxEvent
impl Serialize for InboxEvent
impl StructuralPartialEq for InboxEvent
Auto Trait Implementations§
impl Freeze for InboxEvent
impl RefUnwindSafe for InboxEvent
impl Send for InboxEvent
impl Sync for InboxEvent
impl Unpin for InboxEvent
impl UnsafeUnpin for InboxEvent
impl UnwindSafe for InboxEvent
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