pub struct HeldPlan {
pub view: ScreenPlanView,
pub text: String,
pub step: usize,
pub open: bool,
pub fingerprints: Vec<String>,
}Expand description
A held call that is a step of a previewed screen plan, as a source tells the engine (spec 3.7 Q8): the plan’s first step carries the plan’s one card, and the steps held with it wait behind that card.
§Example
use adk_surface::{HeldPlan, ScreenPlanView};
let held = HeldPlan {
view: ScreenPlanView { digest: "sha256:ab".into(), window: "app.forms".into(), steps: Vec::new() },
text: "0 desktop action(s) in app.forms".into(),
step: 0,
open: true,
fingerprints: Vec::new(),
};
assert!(held.open);Fields§
§view: ScreenPlanViewThe plan as its card shows it.
text: StringThe plan as text: the window, then each step’s operation, target and proposed action.
step: usizeWhich step the held call is, from 0.
open: boolNo one decided the plan yet: its first step’s card takes one answer for every step.
fingerprints: Vec<String>The fingerprint each step’s call is held under, in order.
Trait Implementations§
impl StructuralPartialEq for HeldPlan
Auto Trait Implementations§
impl Forget for HeldPlan
impl Freeze for HeldPlanwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ScreenPlanStepView>: Freeze,
PhantomData<String>: Freeze,
impl Move for HeldPlan
impl RefUnwindSafe for HeldPlan
impl Send for HeldPlan
impl Sync for HeldPlan
impl Unpin for HeldPlan
impl UnsafeUnpin for HeldPlanwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ScreenPlanStepView>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for HeldPlan
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
Mutably borrows from an owned value. Read more
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<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> ⓘ
Converts
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> ⓘ
Converts
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