pub struct FunnelStep {
pub screen_json: Option<String>,
pub effects: Vec<FunnelEffect>,
pub finished: bool,
}Expand description
One step of a funnel, as it crosses the FFI.
screen_json is a raw JSON string rather than a record: the uniffi
record→HashMap mapping cannot carry arbitrary nested JSON, and it also
means a new block type never forces a UDL edit.
Fields§
§screen_json: Option<String>The resolved screen to draw, or None once the funnel is over.
effects: Vec<FunnelEffect>What the host must do before or alongside drawing.
finished: boolTrue once the funnel has ended; screen_json is then None.
Trait Implementations§
Source§impl Clone for FunnelStep
impl Clone for FunnelStep
Source§fn clone(&self) -> FunnelStep
fn clone(&self) -> FunnelStep
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunnelStep
impl RefUnwindSafe for FunnelStep
impl Send for FunnelStep
impl Sync for FunnelStep
impl Unpin for FunnelStep
impl UnwindSafe for FunnelStep
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