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§fn clone(&self) -> ConnectTwilioCallRequest
fn clone(&self) -> ConnectTwilioCallRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.