pub struct ConnectTwilioCallRequest {
pub twilio_call_direction: i32,
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,
}Fields§
§twilio_call_direction: i32The Direction of the call
room_name: StringWhat LiveKit room should this call be connected to
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: StringCountry 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.
Implementations§
Source§impl ConnectTwilioCallRequest
impl ConnectTwilioCallRequest
Sourcepub fn twilio_call_direction(&self) -> TwilioCallDirection
pub fn twilio_call_direction(&self) -> TwilioCallDirection
Returns the enum value of twilio_call_direction, or the default if the field is set to an invalid enum value.
Sourcepub fn set_twilio_call_direction(&mut self, value: TwilioCallDirection)
pub fn set_twilio_call_direction(&mut self, value: TwilioCallDirection)
Sets twilio_call_direction to the provided enum value.
Trait Implementations§
Source§impl Clone for ConnectTwilioCallRequest
impl Clone for ConnectTwilioCallRequest
Source§impl Debug for ConnectTwilioCallRequest
impl Debug for ConnectTwilioCallRequest
Source§impl Default for ConnectTwilioCallRequest
impl Default for ConnectTwilioCallRequest
§impl<'de> Deserialize<'de> for ConnectTwilioCallRequest
impl<'de> Deserialize<'de> for ConnectTwilioCallRequest
§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 ConnectTwilioCallRequest
impl Message for ConnectTwilioCallRequest
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.