pub struct TokenSourceRequest {
pub room_name: Option<String>,
pub participant_name: Option<String>,
pub participant_identity: Option<String>,
pub participant_metadata: Option<String>,
pub participant_attributes: HashMap<String, String>,
pub room_config: Option<RoomConfiguration>,
}Fields§
§room_name: Option<String>The name of the room being requested when generating credentials
participant_name: Option<String>The name of the participant being requested for this client when generating credentials
participant_identity: Option<String>The identity of the participant being requested for this client when generating credentials
participant_metadata: Option<String>Any participant metadata being included along with the credentials generation operation
participant_attributes: HashMap<String, String>Any participant attributes being included along with the credentials generation operation
room_config: Option<RoomConfiguration>A RoomConfiguration object can be passed to request extra parameters should be included when generating connection credentials - dispatching agents, defining egress settings, etc More info: https://docs.livekit.io/home/get-started/authentication/#room-configuration
Implementations§
Source§impl TokenSourceRequest
impl TokenSourceRequest
Sourcepub fn room_name(&self) -> &str
pub fn room_name(&self) -> &str
Returns the value of room_name, or the default value if room_name is unset.
Sourcepub fn participant_name(&self) -> &str
pub fn participant_name(&self) -> &str
Returns the value of participant_name, or the default value if participant_name is unset.
Sourcepub fn participant_identity(&self) -> &str
pub fn participant_identity(&self) -> &str
Returns the value of participant_identity, or the default value if participant_identity is unset.
Sourcepub fn participant_metadata(&self) -> &str
pub fn participant_metadata(&self) -> &str
Returns the value of participant_metadata, or the default value if participant_metadata is unset.
Trait Implementations§
Source§impl Clone for TokenSourceRequest
impl Clone for TokenSourceRequest
Source§impl Debug for TokenSourceRequest
impl Debug for TokenSourceRequest
Source§impl Default for TokenSourceRequest
impl Default for TokenSourceRequest
§impl<'de> Deserialize<'de> for TokenSourceRequest
impl<'de> Deserialize<'de> for TokenSourceRequest
§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 TokenSourceRequest
impl Message for TokenSourceRequest
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.