pub enum StepDetail {
Show 15 variants
Spoke,
Hours {
open: bool,
},
MenuChoice {
digit: String,
},
MenuNoInput,
MenuInvalid,
Ring {
answered: bool,
},
MessageRecorded {
secs: u32,
},
Transferred {
target: String,
},
HungUp,
BookOffered {
count: u64,
},
Booked {
start: String,
},
BookSlotTaken,
BookNoSlots,
BookNoInput,
BookUnavailable,
}Expand description
The per-node outcome. Tagged so it serializes to a self-describing object the renderer can switch on.
Variants§
Spoke
A greeting/say_hours spoke and continued.
Hours
An hours branch resolved.
MenuChoice
A menu caller pressed a mapped option.
MenuNoInput
A menu exhausted its retries with no input at all.
MenuInvalid
A menu exhausted its retries hearing only unmapped keys.
Ring
A ring finished — answered means the human took the call.
MessageRecorded
A voicemail was recorded (seconds captured).
Transferred
A blind transfer was placed.
HungUp
The flow spoke an optional goodbye and hung up.
BookOffered
A book node read the calendar and offered this many times.
Booked
A book node put the caller in the calendar (RFC 3339 start).
BookSlotTaken
The time the caller chose was gone by the time they pressed a key.
BookNoSlots
A book node had nothing to offer — an empty calendar window, or
a second slot lost to somebody else mid-conversation.
BookNoInput
A book node offered times and heard nothing usable back.
A book node could not reach the calendar at all.
Trait Implementations§
Source§impl Clone for StepDetail
impl Clone for StepDetail
Source§fn clone(&self) -> StepDetail
fn clone(&self) -> StepDetail
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more