pub struct DecisionFacts {
pub risk: Risk,
pub money: bool,
pub truncated: bool,
pub allows: Vec<ApprovalAction>,
pub always_label: Option<String>,
pub adds_agent: bool,
pub image: Option<ImageGate>,
pub plan: bool,
}Expand description
What the engine knows about a decision when it computes the answers (spec 3.3 §7.1).
Fields§
§risk: RiskThe risk the inbox entry carries.
money: boolThe call spends money: never “always”, never approved from chat, voice or the tray (§7.4 rule 4).
truncated: boolThe call is shown truncated and must be expanded before it is approved (§7.1).
allows: Vec<ApprovalAction>What the inbox entry allows.
always_label: Option<String>The label of “Always allow” when the source can create the standing rule, such as
“Always allow for this person”; None when it cannot.
adds_agent: boolThe decision adds an agent a person was suggested (kernel:agent.create): it follows
the “Always allow” column, with Add this agent and Don’t add (spec 3.3 §5.7,
§7.2).
image: Option<ImageGate>The call sends, keeps or acts on images held as evidence (spec 3.7 §8.2): what a
surface may answer then depends on whether it can show them and whether anything is
left to send. None for a call without images.
plan: boolThe card decides a whole screen plan with one answer (spec 3.7 Q8): Allow and Deny only, never Always allow or Edit, and Allow only where the whole plan can be shown — the web home, the phone and the terminal.
Trait Implementations§
Source§impl Clone for DecisionFacts
impl Clone for DecisionFacts
Source§impl Debug for DecisionFacts
impl Debug for DecisionFacts
impl Eq for DecisionFacts
Source§impl PartialEq for DecisionFacts
impl PartialEq for DecisionFacts
impl StructuralPartialEq for DecisionFacts
Auto Trait Implementations§
impl Forget for DecisionFacts
impl Freeze for DecisionFacts
impl Move for DecisionFacts
impl RefUnwindSafe for DecisionFacts
impl Send for DecisionFactswhere
RawVecInner: Send,
impl Sync for DecisionFactswhere
RawVecInner: Sync,
impl Unpin for DecisionFacts
impl UnsafeUnpin for DecisionFactswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ApprovalAction>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DecisionFactswhere
RawVecInner: 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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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