pub enum MusePayload {
CommandAccepted(CommandAccepted),
SessionRunLinked(SessionRunLinked),
TurnInputUser(TurnInputUser),
RunStarted(RunStarted),
RunOutputDelta(RunOutputDelta),
RunTerminal(RunTerminal),
TaskStreamLinked(TaskStreamLinked),
TaskLifecycle(TaskLifecycle),
Unknown {
payload_type: String,
payload: Value,
},
}Expand description
Typed payload of a MuseRecord, discriminated by payload_type.
Variants§
CommandAccepted(CommandAccepted)
runtime.command.accepted
SessionRunLinked(SessionRunLinked)
session.run.linked
TurnInputUser(TurnInputUser)
turn.input.user
RunStarted(RunStarted)
run.lifecycle.started
RunOutputDelta(RunOutputDelta)
run.output.delta
RunTerminal(RunTerminal)
run.terminal.completed (and any future run.terminal.*)
TaskStreamLinked(TaskStreamLinked)
task.stream.linked
TaskLifecycle(TaskLifecycle)
task.lifecycle.*
Unknown
A payload type not yet known to this crate — preserved verbatim.
Implementations§
Source§impl MusePayload
impl MusePayload
pub fn from_parts(payload_type: &str, payload: Value) -> Result<Self>
Trait Implementations§
Source§impl Clone for MusePayload
impl Clone for MusePayload
Source§fn clone(&self) -> MusePayload
fn clone(&self) -> MusePayload
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 MusePayload
impl Debug for MusePayload
Source§impl PartialEq for MusePayload
impl PartialEq for MusePayload
impl StructuralPartialEq for MusePayload
Auto Trait Implementations§
impl Freeze for MusePayload
impl RefUnwindSafe for MusePayload
impl Send for MusePayload
impl Sync for MusePayload
impl Unpin for MusePayload
impl UnsafeUnpin for MusePayload
impl UnwindSafe for MusePayload
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