pub struct ClientMessageVoiceInput {
pub phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>,
pub type: TypeTrue,
pub timestamp: Option<f64>,
pub call: Option<Call>,
pub customer: Option<CreateCustomerDto>,
pub assistant: Option<CreateAssistantDto>,
pub input: String,
}
Fields§
§phone_number: Option<ClientMessageWorkflowNodeStartedPhoneNumber>
§type: TypeTrue
This is the type of the message. "voice-input" is sent when a generation is requested from voice provider.
timestamp: Option<f64>
This is the timestamp of the message.
call: Option<Call>
This is the call that the message is associated with.
customer: Option<CreateCustomerDto>
This is the customer that the message is associated with.
assistant: Option<CreateAssistantDto>
This is the assistant that the message is associated with.
input: String
This is the voice input content
Implementations§
Source§impl ClientMessageVoiceInput
impl ClientMessageVoiceInput
pub fn new(type: TypeTrue, input: String) -> ClientMessageVoiceInput
Trait Implementations§
Source§impl Clone for ClientMessageVoiceInput
impl Clone for ClientMessageVoiceInput
Source§fn clone(&self) -> ClientMessageVoiceInput
fn clone(&self) -> ClientMessageVoiceInput
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClientMessageVoiceInput
impl Debug for ClientMessageVoiceInput
Source§impl Default for ClientMessageVoiceInput
impl Default for ClientMessageVoiceInput
Source§fn default() -> ClientMessageVoiceInput
fn default() -> ClientMessageVoiceInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientMessageVoiceInput
impl<'de> Deserialize<'de> for ClientMessageVoiceInput
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
Source§impl PartialEq for ClientMessageVoiceInput
impl PartialEq for ClientMessageVoiceInput
Source§impl Serialize for ClientMessageVoiceInput
impl Serialize for ClientMessageVoiceInput
impl StructuralPartialEq for ClientMessageVoiceInput
Auto Trait Implementations§
impl Freeze for ClientMessageVoiceInput
impl RefUnwindSafe for ClientMessageVoiceInput
impl Send for ClientMessageVoiceInput
impl Sync for ClientMessageVoiceInput
impl Unpin for ClientMessageVoiceInput
impl UnwindSafe for ClientMessageVoiceInput
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