pub struct AcceptWhatsAppCallRequest {Show 15 fields
pub whatsapp_phone_number_id: String,
pub whatsapp_api_key: String,
pub whatsapp_cloud_api_version: String,
pub whatsapp_call_id: String,
pub whatsapp_biz_opaque_callback_data: String,
pub sdp: Option<SessionDescription>,
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>,
pub wait_until_answered: bool,
}Fields§
§whatsapp_phone_number_id: StringRequired - The phone number id of the business that is conencting the call
whatsapp_api_key: StringRequired - The API key of the business that is connecting the call
whatsapp_cloud_api_version: StringRequired - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
whatsapp_call_id: StringRequired - Call ID sent by Meta
whatsapp_biz_opaque_callback_data: StringOptional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
sdp: Option<SessionDescription>Required - The call accept webhook comes with SDP from Meta It is the for a user initiated call
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.
wait_until_answered: boolWait for the answer for the call before returning.
Trait Implementations§
Source§impl Clone for AcceptWhatsAppCallRequest
impl Clone for AcceptWhatsAppCallRequest
Source§impl Debug for AcceptWhatsAppCallRequest
impl Debug for AcceptWhatsAppCallRequest
Source§impl Default for AcceptWhatsAppCallRequest
impl Default for AcceptWhatsAppCallRequest
§impl<'de> Deserialize<'de> for AcceptWhatsAppCallRequest
impl<'de> Deserialize<'de> for AcceptWhatsAppCallRequest
§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 AcceptWhatsAppCallRequest
impl Message for AcceptWhatsAppCallRequest
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.