pub struct ServerMessageResponseAssistantRequest {
pub destination: Option<Box<ServerMessageResponseAssistantRequestDestination>>,
pub assistant_id: Option<Option<String>>,
pub assistant: Option<Box<CreateAssistantDto>>,
pub assistant_overrides: Option<Box<AssistantOverrides>>,
pub squad_id: Option<String>,
pub squad: Option<Box<CreateSquadDto>>,
pub error: Option<String>,
}Fields§
§destination: Option<Box<ServerMessageResponseAssistantRequestDestination>>§assistant_id: Option<Option<String>>This is the assistant that will be used for the call. To use a transient assistant, use assistant instead.
assistant: Option<Box<CreateAssistantDto>>This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead. If you’re unsure why you’re getting an invalid assistant, try logging your response and send the JSON blob to POST /assistant which will return the validation errors.
assistant_overrides: Option<Box<AssistantOverrides>>These are the overrides for the assistant or assistantId’s settings and template variables.
squad_id: Option<String>This is the squad that will be used for the call. To use a transient squad, use squad instead.
squad: Option<Box<CreateSquadDto>>This is a squad that will be used for the call. To use an existing squad, use squadId instead.
error: Option<String>This is the error if the call shouldn’t be accepted. This is spoken to the customer. If this is sent, assistantId, assistant, squadId, squad, and destination are ignored.
Implementations§
Trait Implementations§
Source§impl Clone for ServerMessageResponseAssistantRequest
impl Clone for ServerMessageResponseAssistantRequest
Source§fn clone(&self) -> ServerMessageResponseAssistantRequest
fn clone(&self) -> ServerMessageResponseAssistantRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ServerMessageResponseAssistantRequest
impl Default for ServerMessageResponseAssistantRequest
Source§fn default() -> ServerMessageResponseAssistantRequest
fn default() -> ServerMessageResponseAssistantRequest
Source§impl<'de> Deserialize<'de> for ServerMessageResponseAssistantRequest
impl<'de> Deserialize<'de> for ServerMessageResponseAssistantRequest
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 ServerMessageResponseAssistantRequest
impl PartialEq for ServerMessageResponseAssistantRequest
Source§fn eq(&self, other: &ServerMessageResponseAssistantRequest) -> bool
fn eq(&self, other: &ServerMessageResponseAssistantRequest) -> bool
self and other values to be equal, and is used by ==.