pub struct ServerMessageTransferUpdate {
pub phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>,
pub type: Type,
pub destination: Option<Box<ClientMessageTransferUpdateDestination>>,
pub timestamp: Option<String>,
pub artifact: Option<Box<Artifact>>,
pub assistant: Option<Box<CreateAssistantDto>>,
pub customer: Option<Box<CreateCustomerDto>>,
pub call: Option<Box<Call>>,
pub to_assistant: Option<Box<CreateAssistantDto>>,
pub from_assistant: Option<Box<CreateAssistantDto>>,
pub to_step_record: Option<Value>,
pub from_step_record: Option<Value>,
}Fields§
§phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>§type: TypeThis is the type of the message. "transfer-update" is sent whenever a transfer happens.
destination: Option<Box<ClientMessageTransferUpdateDestination>>§timestamp: Option<String>This is the ISO-8601 formatted timestamp of when the message was sent.
artifact: Option<Box<Artifact>>This is a live version of the call.artifact. This matches what is stored on call.artifact after the call.
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.
to_assistant: Option<Box<CreateAssistantDto>>This is the assistant that the call is being transferred to. This is only sent if destination.type is "assistant".
from_assistant: Option<Box<CreateAssistantDto>>This is the assistant that the call is being transferred from. This is only sent if destination.type is "assistant".
to_step_record: Option<Value>This is the step that the conversation moved to.
from_step_record: Option<Value>This is the step that the conversation moved from. =
Implementations§
Source§impl ServerMessageTransferUpdate
impl ServerMessageTransferUpdate
pub fn new(type: Type) -> ServerMessageTransferUpdate
Trait Implementations§
Source§impl Clone for ServerMessageTransferUpdate
impl Clone for ServerMessageTransferUpdate
Source§fn clone(&self) -> ServerMessageTransferUpdate
fn clone(&self) -> ServerMessageTransferUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more