pub struct ServerMessageEndOfCallReport {Show 13 fields
pub phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>,
pub type: Type,
pub ended_reason: EndedReason,
pub cost: Option<f64>,
pub costs: Option<Vec<CallCostsInner>>,
pub timestamp: Option<String>,
pub artifact: Box<Artifact>,
pub assistant: Option<Box<CreateAssistantDto>>,
pub customer: Option<Box<CreateCustomerDto>>,
pub call: Option<Box<Call>>,
pub analysis: Box<Analysis>,
pub started_at: Option<String>,
pub ended_at: Option<String>,
}Fields§
§phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>§type: TypeThis is the type of the message. "end-of-call-report" is sent when the call ends and post-processing is complete.
ended_reason: EndedReasonThis is the reason the call ended. This can also be found at call.endedReason on GET /call/:id.
cost: Option<f64>This is the cost of the call in USD. This can also be found at call.cost on GET /call/:id.
costs: Option<Vec<CallCostsInner>>These are the costs of individual components of the call in USD. This can also be found at call.costs on GET /call/:id.
timestamp: Option<String>This is the ISO-8601 formatted timestamp of when the message was sent.
artifact: Box<Artifact>These are the artifacts from the call. This can also be found at call.artifact on GET /call/:id.
assistant: Option<Box<CreateAssistantDto>>This is the assistant that is currently active. This is provided for convenience. This matches one of the following: - call.assistant, - call.assistantId, - call.squad[n].assistant, - call.squad[n].assistantId, - call.squadId->[n].assistant, - call.squadId->[n].assistantId.
customer: Option<Box<CreateCustomerDto>>This is the customer associated with the call. This matches one of the following: - call.customer, - call.customerId.
call: Option<Box<Call>>This is the call object. This matches what was returned in POST /call. Note: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.
analysis: Box<Analysis>This is the analysis of the call. This can also be found at call.analysis on GET /call/:id.
started_at: Option<String>This is the ISO 8601 date-time string of when the call started. This can also be found at call.startedAt on GET /call/:id.
ended_at: Option<String>This is the ISO 8601 date-time string of when the call ended. This can also be found at call.endedAt on GET /call/:id.
Implementations§
Source§impl ServerMessageEndOfCallReport
impl ServerMessageEndOfCallReport
pub fn new( type: Type, ended_reason: EndedReason, artifact: Artifact, analysis: Analysis, ) -> ServerMessageEndOfCallReport
Trait Implementations§
Source§impl Clone for ServerMessageEndOfCallReport
impl Clone for ServerMessageEndOfCallReport
Source§fn clone(&self) -> ServerMessageEndOfCallReport
fn clone(&self) -> ServerMessageEndOfCallReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerMessageEndOfCallReport
impl Debug for ServerMessageEndOfCallReport
Source§impl Default for ServerMessageEndOfCallReport
impl Default for ServerMessageEndOfCallReport
Source§fn default() -> ServerMessageEndOfCallReport
fn default() -> ServerMessageEndOfCallReport
Source§impl<'de> Deserialize<'de> for ServerMessageEndOfCallReport
impl<'de> Deserialize<'de> for ServerMessageEndOfCallReport
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>,
Source§impl PartialEq for ServerMessageEndOfCallReport
impl PartialEq for ServerMessageEndOfCallReport
Source§fn eq(&self, other: &ServerMessageEndOfCallReport) -> bool
fn eq(&self, other: &ServerMessageEndOfCallReport) -> bool
self and other values to be equal, and is used by ==.