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
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
Returns a duplicate of the value. Read more
1.0.0 · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ConnectTwilioCallRequest
impl Message for ConnectTwilioCallRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ConnectTwilioCallRequest
impl PartialEq for ConnectTwilioCallRequest
§impl Serialize for ConnectTwilioCallRequest
impl Serialize for ConnectTwilioCallRequest
impl StructuralPartialEq for ConnectTwilioCallRequest
Auto Trait Implementations§
impl Freeze for ConnectTwilioCallRequest
impl RefUnwindSafe for ConnectTwilioCallRequest
impl Send for ConnectTwilioCallRequest
impl Sync for ConnectTwilioCallRequest
impl Unpin for ConnectTwilioCallRequest
impl UnwindSafe for ConnectTwilioCallRequest
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