pub struct VoiceMessage {
pub to: Option<String>,
pub body: String,
pub voice: String,
pub lang: String,
pub country: Option<String>,
pub source: Option<String>,
pub custom_string: Option<String>,
pub list_id: Option<i64>,
pub schedule: Option<i64>,
pub require_input: Option<u8>,
pub machine_detection: Option<u8>,
}Expand description
One TTS voice call.
ClickSend will dial to, then a TTS engine reads body aloud in lang
using the voice ("female"/"male").
Fields§
§to: Option<String>Recipient (E.164).
body: StringText the TTS engine reads aloud.
voice: String"female" or "male".
lang: StringBCP-47-ish language tag (e.g. "en-us", "en-gb", "de-de").
country: Option<String>Destination country (ISO).
source: Option<String>Source tag.
custom_string: Option<String>Your reference id.
list_id: Option<i64>Send to a saved list instead of to.
schedule: Option<i64>Schedule for later (unix timestamp).
require_input: Option<u8>1 to capture a DTMF keypress from the recipient.
machine_detection: Option<u8>1 to detect voicemail and leave a message.
Implementations§
Trait Implementations§
Source§impl Clone for VoiceMessage
impl Clone for VoiceMessage
Source§fn clone(&self) -> VoiceMessage
fn clone(&self) -> VoiceMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceMessage
impl Debug for VoiceMessage
Source§impl Default for VoiceMessage
impl Default for VoiceMessage
Source§fn default() -> VoiceMessage
fn default() -> VoiceMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VoiceMessage
impl RefUnwindSafe for VoiceMessage
impl Send for VoiceMessage
impl Sync for VoiceMessage
impl Unpin for VoiceMessage
impl UnsafeUnpin for VoiceMessage
impl UnwindSafe for VoiceMessage
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