pub struct InboxEvent {
pub peer: String,
pub event_id: String,
pub kind: String,
pub body_preview: String,
pub verified: bool,
pub timestamp: String,
pub raw: Value,
}Expand description
One delivered event surfaced by a watcher.
Fields§
§peer: String§event_id: String§kind: String§body_preview: String§verified: bool§timestamp: String§raw: ValueFull signed event JSON for tools that want it (e.g. MCP resources/read).
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
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