pub struct DialWhatsAppCallRequest {Show 13 fields
pub whatsapp_phone_number_id: String,
pub whatsapp_to_phone_number: String,
pub whatsapp_api_key: String,
pub whatsapp_cloud_api_version: String,
pub whatsapp_biz_opaque_callback_data: String,
pub room_name: String,
pub agents: Vec<RoomAgentDispatch>,
pub participant_identity: String,
pub participant_name: String,
pub participant_metadata: String,
pub participant_attributes: HashMap<String, String>,
pub destination_country: String,
pub ringing_timeout: Option<Duration>,
}Fields§
§whatsapp_phone_number_id: StringRequired - The phone number id of the business that is initiating the call
whatsapp_to_phone_number: StringRequired - The number of the user that is supossed to receive the call
whatsapp_api_key: StringRequired - The API key of the business that is initiating the call
whatsapp_cloud_api_version: StringRequired - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
whatsapp_biz_opaque_callback_data: StringOptional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
room_name: StringOptional - What LiveKit room should this participant be connected too
agents: Vec<RoomAgentDispatch>Optional - Agents to dispatch the call to
participant_identity: StringOptional - Identity of the participant in LiveKit room This is used for logging purposes, so it is advised to not put PII in this field.
participant_name: StringOptional - Name of the participant in LiveKit room
participant_metadata: StringOptional - User-defined metadata. Will be attached to a created Participant in the room.
participant_attributes: HashMap<String, String>Optional - User-defined attributes. Will be attached to a created Participant in the room.
destination_country: StringOptional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
ringing_timeout: Option<Duration>Max time for the callee to answer the call.
Trait Implementations§
Source§impl Clone for DialWhatsAppCallRequest
impl Clone for DialWhatsAppCallRequest
Source§impl Debug for DialWhatsAppCallRequest
impl Debug for DialWhatsAppCallRequest
Source§impl Default for DialWhatsAppCallRequest
impl Default for DialWhatsAppCallRequest
§impl<'de> Deserialize<'de> for DialWhatsAppCallRequest
impl<'de> Deserialize<'de> for DialWhatsAppCallRequest
§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 Message for DialWhatsAppCallRequest
impl Message for DialWhatsAppCallRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.