pub struct VoiceCallFlowStep {
pub at_ms: i64,
pub kind: String,
pub node: Option<String>,
pub digit: Option<String>,
pub secs: Option<i64>,
pub target: Option<String>,
pub open: Option<bool>,
pub answered: Option<bool>,
}Expand description
One step of a call flow’s run, as the daemon projects it from its
local call_flow_step events.
Deliberately structural rather than a rendered sentence. The daemon has an English summary for each step, but the platform’s web UI serves nine locales — shipping prose would make these permanently untranslatable there. Consumers get the parts and compose the sentence themselves.
kind is a plain String, not an enum, and that is the point: step
kinds grow every time the flow engine gains a node type, and a
consumer built against an older version of this crate must still be
able to deserialize a newer daemon’s trace. An unknown kind is
rendered as an unnamed marker rather than rejected.
Fields§
§at_ms: i64Milliseconds from the call’s answer time — the same zero the recording starts at, so a step lines up with the audio.
kind: StringThe engine’s step tag: spoke, hours, menu_choice,
menu_no_input, menu_invalid, ring, message_recorded,
transferred, hung_up, or the synthetic answered marking a
mid-run take-over by the owner.
node: Option<String>The flow node this step belongs to, when it names one.
digit: Option<String>The key the caller pressed — menu_choice only.
secs: Option<i64>Recorded message length in seconds — message_recorded only.
target: Option<String>Where the call was sent — transferred only.
open: Option<bool>Whether an hours check landed inside business hours.
answered: Option<bool>Whether a ring step was picked up.
Trait Implementations§
Source§impl Clone for VoiceCallFlowStep
impl Clone for VoiceCallFlowStep
Source§fn clone(&self) -> VoiceCallFlowStep
fn clone(&self) -> VoiceCallFlowStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more