pub struct SidecarResult {
pub turn_id: u64,
pub text: String,
pub data: Option<Value>,
}Expand description
Result delivered by the sidecar track once the substantive answer has been produced (or a fast-data path has hit).
Fields§
§turn_id: u64The turn this result belongs to. Callers MUST gate playback
on result.turn_id == current_turn_id so stale results from
superseded turns are dropped after a barge-in.
text: StringSubstantive answer to play through TTS.
data: Option<Value>Optional structured data (tool results, etc.) for callers that want to render something richer than text-to-speech.
Trait Implementations§
Source§impl Clone for SidecarResult
impl Clone for SidecarResult
Source§fn clone(&self) -> SidecarResult
fn clone(&self) -> SidecarResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SidecarResult
impl RefUnwindSafe for SidecarResult
impl Send for SidecarResult
impl Sync for SidecarResult
impl Unpin for SidecarResult
impl UnsafeUnpin for SidecarResult
impl UnwindSafe for SidecarResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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