pub struct RtviMessage {
pub label: &'static str,
pub kind: &'static str,
pub data: Option<Value>,
}Expand description
One outgoing RTVI server→client message. Serializes to the exact pipecat v1
wire shape: { "label": "rtvi-ai", "type": "<type>", "data"?: { … } }.
data is omitted entirely (not null) for payload-free messages, matching
pipecat’s Message model where data defaults to None and the observer
dumps with exclude_none=True.
Fields§
§label: &'static strAlways MESSAGE_LABEL.
kind: &'static strThe RTVI message type literal, e.g. "user-transcription".
data: Option<Value>Message payload; omitted when absent.
Implementations§
Trait Implementations§
Source§impl Clone for RtviMessage
impl Clone for RtviMessage
Source§impl Debug for RtviMessage
impl Debug for RtviMessage
Source§impl PartialEq for RtviMessage
impl PartialEq for RtviMessage
Source§impl Serialize for RtviMessage
impl Serialize for RtviMessage
impl StructuralPartialEq for RtviMessage
Auto Trait Implementations§
impl Freeze for RtviMessage
impl RefUnwindSafe for RtviMessage
impl Send for RtviMessage
impl Sync for RtviMessage
impl Unpin for RtviMessage
impl UnsafeUnpin for RtviMessage
impl UnwindSafe for RtviMessage
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