pub enum InboxFrame {
Message {
id: String,
op: MessageOp,
text: String,
source: Option<DiscordMessageSource>,
},
Task {
observation: TaskObservation,
},
Project {
observation: ProjectObservation,
},
Promotion {
parent_wave_id: WaveId,
parent: String,
},
Interrupt,
Skip,
}Expand description
One inbox SSE frame on /events?inbox=true — a resident-directed op.
A Message carries its journaled id ("msg-<seq>"). Interrupt and Skip
carry none: nothing is journaled, because the op is control, not content.
Variants§
Message
Task
Fields
§
observation: TaskObservationProject
Fields
§
observation: ProjectObservationPromotion
Interrupt
Skip
Trait Implementations§
Source§impl Clone for InboxFrame
impl Clone for InboxFrame
Source§fn clone(&self) -> InboxFrame
fn clone(&self) -> InboxFrame
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 InboxFrame
impl Debug for InboxFrame
Source§impl<'de> Deserialize<'de> for InboxFrame
impl<'de> Deserialize<'de> for InboxFrame
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 InboxFrame
impl PartialEq for InboxFrame
Source§impl Serialize for InboxFrame
impl Serialize for InboxFrame
impl StructuralPartialEq for InboxFrame
Auto Trait Implementations§
impl Freeze for InboxFrame
impl RefUnwindSafe for InboxFrame
impl Send for InboxFrame
impl Sync for InboxFrame
impl Unpin for InboxFrame
impl UnsafeUnpin for InboxFrame
impl UnwindSafe for InboxFrame
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