pub enum CommandOutcome {
Show 22 variants
Answered {
card: DecisionCard,
},
AlreadyDecided {
decided: Decided,
card: DecisionCard,
},
Changed {
card: DecisionCard,
},
ImagePreview {
changed: ImageChanged,
},
HeldAgain {
changed: Option<ImageChanged>,
card: DecisionCard,
},
Pending {
decision_id: String,
cancel_until: DateTime<Utc>,
text: String,
},
AnswerCancelled {
decision_id: String,
},
Sent {
session_id: String,
},
TurnStopped {
session_id: String,
stopped: bool,
text: String,
},
Steered {
session_id: String,
event_id: String,
},
Queued {
session_id: String,
position: u32,
text: String,
},
Stopped {
text: String,
},
Resumed,
ModeSet {
mode: ModeView,
},
AgentAdded {
agent: AgentDetail,
},
AgentChanged {
agent: AgentDetail,
},
AgentPaused {
agent: AgentDetail,
},
AgentResumed {
agent: AgentDetail,
},
AgentRemoved {
ended: EndedWork,
},
AgentOutOfDate {
agent: AgentDetail,
text: String,
},
RuleCopied {
agent: String,
label: String,
},
FormSent {
session_id: String,
surface_id: String,
version: u64,
call_id: String,
},
}Expand description
What a command did (spec 3.3 §6).
Variants§
Answered
This answer was recorded; card.decided says how it ended when it did.
Fields
card: DecisionCardThe decision after the answer.
AlreadyDecided
Someone answered first: shown, never retried (S-I2).
Changed
The decision changed since the version the surface saw and is still open: show it again (S-I2).
Fields
card: DecisionCardThe decision now.
ImagePreview
What a change to an image would make, held nowhere: the editor shows it before Use this image (board choice A8).
Fields
changed: ImageChangedThe image the change would make: its digest and size, and the one it replaces.
HeldAgain
The call was held again with what the person changed — its arguments, or one of its
images (spec 3.7 V-I5): card is the old decision, closed; the call waiting with the
new image follows in the feed.
Fields
changed: Option<ImageChanged>The image change, when an image changed.
card: DecisionCardThe old decision.
Pending
A spoken “allow once” takes effect at cancel_until unless cancelled (§7.2).
Fields
AnswerCancelled
A spoken answer was cancelled in its window.
Sent
The message started a turn.
TurnStopped
The session’s running turn was stopped, or none was running (spec 3.3 §5.1).
Fields
Steered
The session’s running turn took the message at its agent’s next safe point (§6
“steer”): the session holds it as event event_id, and the turn’s next model call
carries it.
Fields
Queued
The message waits: until the session’s open decisions are answered (S-I4), or until its running turn takes it or ends.
Fields
Stopped
Every agent stopped.
Resumed
Agents run again.
ModeSet
The mode changed.
AgentAdded
The agent was added (spec 3.3 §5.7).
Fields
agent: AgentDetailThe agent now.
AgentChanged
The agent was changed.
Fields
agent: AgentDetailThe agent now.
AgentPaused
The agent was paused.
Fields
agent: AgentDetailThe agent now.
AgentResumed
The agent runs again.
Fields
agent: AgentDetailThe agent now.
AgentRemoved
The agent was removed; its threads stay.
AgentOutOfDate
The agent changed since the version the surface showed: show it again (spec 3.3 §5.7).
Fields
agent: AgentDetailThe agent now.
RuleCopied
A rule was copied to the agent (spec 3.3 S-I19).
FormSent
A drawn form was sent: its call is on its way to the drawing agent, which holds it for the person’s decision (spec 3.3 §7.4 rule 5). The form’s state follows from that decision, never from this answer.
Trait Implementations§
Source§impl Clone for CommandOutcome
impl Clone for CommandOutcome
Source§impl Debug for CommandOutcome
impl Debug for CommandOutcome
Source§impl<'de> Deserialize<'de> for CommandOutcome
impl<'de> Deserialize<'de> for CommandOutcome
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>,
Source§impl JsonSchema for CommandOutcome
impl JsonSchema for CommandOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CommandOutcome
impl PartialEq for CommandOutcome
Source§impl Serialize for CommandOutcome
impl Serialize for CommandOutcome
impl StructuralPartialEq for CommandOutcome
Auto Trait Implementations§
impl Forget for CommandOutcome
impl Freeze for CommandOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<TimelineStep>: Freeze,
PhantomData<AnswerOption>: Freeze,
PhantomData<CardLine>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ElicitedField>: Freeze,
PhantomData<EvidenceImage>: Freeze,
PhantomData<CoveredLine>: Freeze,
PhantomData<ScreenPlanStepView>: Freeze,
PhantomData<GrantedUse>: Freeze,
impl Move for CommandOutcome
impl RefUnwindSafe for CommandOutcome
impl Send for CommandOutcome
impl Sync for CommandOutcome
impl Unpin for CommandOutcome
impl UnsafeUnpin for CommandOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<TimelineStep>: UnsafeUnpin,
PhantomData<AnswerOption>: UnsafeUnpin,
PhantomData<CardLine>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ElicitedField>: UnsafeUnpin,
PhantomData<EvidenceImage>: UnsafeUnpin,
PhantomData<CoveredLine>: UnsafeUnpin,
PhantomData<ScreenPlanStepView>: UnsafeUnpin,
PhantomData<GrantedUse>: UnsafeUnpin,
impl UnwindSafe for CommandOutcomewhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more