pub struct DecisionCard {Show 26 fields
pub id: String,
pub version: u64,
pub session_id: String,
pub agent: AgentRef,
pub waiting_since: DateTime<Utc>,
pub since_text: String,
pub status: CardStatus,
pub status_text: String,
pub heading: String,
pub summary: Option<String>,
pub call: CallView,
pub timeline: Vec<TimelineStep>,
pub allowed: Allowed,
pub risk: Risk,
pub risk_text: String,
pub reversibility: Reversibility,
pub reversibility_text: String,
pub money: bool,
pub also_shown: Option<String>,
pub decided: Option<Decided>,
pub adds_agent: Option<AgentCardView>,
pub detail: Option<CardDetail>,
pub elicitation: Option<ElicitationView>,
pub media: Option<CardMedia>,
pub parked: Option<ParkedView>,
pub plan: Option<ScreenPlanView>,
}Expand description
A decision, drawn the same way on every surface from its inbox entry, never from agent output (spec 3.3 §7.1, §11 S-I1).
Fields§
§id: StringThe inbox entry: what a command answers. Never shown.
version: u64The version the surface saw, which its answer carries (S-I2). Never shown.
session_id: StringThe session the call belongs to.
agent: AgentRefWho asks.
waiting_since: DateTime<Utc>Since when it waits.
since_text: String“since 18:00”.
status: CardStatusWaiting or decided.
status_text: StringThe pill: “Waiting for you” or “Decided”.
heading: StringWhat will happen, in plain words.
summary: Option<String>What the heading alone does not say, in plain words, for a decision the kernel itself asks: who suggests the work and when it runs once allowed, such as “Finance suggests this. Once you say yes, it runs every 5 minutes.” (spec 3.3 §7.1, §8.1). Never on a chat card (S-I5).
call: CallViewThe exact call: the details under the plain words.
timeline: Vec<TimelineStep>How it got here.
allowed: AllowedThe answers this surface may give; empty once decided.
risk: RiskThe risk.
risk_text: String“Medium risk”.
reversibility: ReversibilityWhether it can be taken back.
reversibility_text: String“Can’t be unsent”.
money: boolThe call spends money.
also_shown: Option<String>“Also on your phone and in Telegram”.
decided: Option<Decided>The answer, once decided.
adds_agent: Option<AgentCardView>The agent a suggestion would add, shown in place of the call (spec 3.3 §5.7, S-I13).
detail: Option<CardDetail>A line under the details from a feature’s CardHint, such as
“From the invoice-run workflow · Open in Runs” (spec 3.3 §7.1). Never on a chat card
(S-I5).
elicitation: Option<ElicitationView>What an MCP server asks the person, drawn in the home’s own controls in place of the call’s arguments (MCP elicitation; spec 3.3 §7.2). Never on a chat card (S-I5).
media: Option<CardMedia>The images the call would send, keep or act on, after redaction, with what was covered, where they go and what they cost (spec 3.7 §8.2, X11). Never on a chat card, which carries the image itself or a link (S-I5).
parked: Option<ParkedView>The run that waited on this decision ended while it still waits: the answer is kept and used when the agent picks the thread up again (spec 3.7 §8.2, board choice A12).
plan: Option<ScreenPlanView>The screen plan the card decides with one answer (spec 3.7 Q8): its window and every
step with its target and the screenshot the target was found on. None for a card that
decides one call.
Trait Implementations§
Source§impl Clone for DecisionCard
impl Clone for DecisionCard
Source§impl Debug for DecisionCard
impl Debug for DecisionCard
Source§impl<'de> Deserialize<'de> for DecisionCard
impl<'de> Deserialize<'de> for DecisionCard
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 DecisionCard
impl JsonSchema for DecisionCard
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 DecisionCard
impl PartialEq for DecisionCard
Source§impl Serialize for DecisionCard
impl Serialize for DecisionCard
impl StructuralPartialEq for DecisionCard
Auto Trait Implementations§
impl Forget for DecisionCard
impl Freeze for DecisionCardwhere
*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,
impl Move for DecisionCard
impl RefUnwindSafe for DecisionCard
impl Send for DecisionCard
impl Sync for DecisionCard
impl Unpin for DecisionCard
impl UnsafeUnpin for DecisionCardwhere
*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,
impl UnwindSafe for DecisionCardwhere
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