pub struct CallData {Show 13 fields
pub id: Uuid,
pub status: CallStatus,
pub summary: Option<String>,
pub call_direction: CallDirection,
pub started_at: String,
pub ended_at: Option<String>,
pub duration_ms: Option<u32>,
pub ended_reason: Option<String>,
pub ended_status: Option<CallEndedStatus>,
pub is_test: bool,
pub participants: Vec<CallParticipant>,
pub tool_invocations: Option<Vec<ToolInvocation>>,
pub properties: Option<HashMap<String, Value>>,
}Expand description
CallData : Comprehensive call information including participants, timing, and metadata
Fields§
§id: UuidUnique identifier for the call record
status: CallStatus§summary: Option<String>AI-generated summary of the call content and outcomes
call_direction: CallDirection§started_at: StringISO 8601 timestamp when the call began
ended_at: Option<String>ISO 8601 timestamp when the call ended (null if call is ongoing)
duration_ms: Option<u32>Total call duration in milliseconds (null if call is ongoing)
ended_reason: Option<String>Detailed reason why the call ended
ended_status: Option<CallEndedStatus>§is_test: boolWhether this is a test call used for development or QA purposes
participants: Vec<CallParticipant>List of call participants (exactly 2: agent and customer)
tool_invocations: Option<Vec<ToolInvocation>>List of tools or functions invoked during the call
properties: Option<HashMap<String, Value>>Custom key-value properties for filtering and categorization
Implementations§
Source§impl CallData
impl CallData
Sourcepub fn new(
id: Uuid,
status: CallStatus,
call_direction: CallDirection,
started_at: String,
is_test: bool,
participants: Vec<CallParticipant>,
) -> CallData
pub fn new( id: Uuid, status: CallStatus, call_direction: CallDirection, started_at: String, is_test: bool, participants: Vec<CallParticipant>, ) -> CallData
Comprehensive call information including participants, timing, and metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallData
impl<'de> Deserialize<'de> for CallData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CallData
Auto Trait Implementations§
impl Freeze for CallData
impl RefUnwindSafe for CallData
impl Send for CallData
impl Sync for CallData
impl Unpin for CallData
impl UnsafeUnpin for CallData
impl UnwindSafe for CallData
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