#[non_exhaustive]pub struct ParticipantTokenCredentialsBuilder { /* private fields */ }
Expand description
A builder for ParticipantTokenCredentials
.
Implementations§
source§impl ParticipantTokenCredentialsBuilder
impl ParticipantTokenCredentialsBuilder
sourcepub fn participant_token(self, input: impl Into<String>) -> Self
pub fn participant_token(self, input: impl Into<String>) -> Self
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
sourcepub fn set_participant_token(self, input: Option<String>) -> Self
pub fn set_participant_token(self, input: Option<String>) -> Self
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
sourcepub fn get_participant_token(&self) -> &Option<String>
pub fn get_participant_token(&self) -> &Option<String>
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
sourcepub fn expiry(self, input: impl Into<String>) -> Self
pub fn expiry(self, input: impl Into<String>) -> Self
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn set_expiry(self, input: Option<String>) -> Self
pub fn set_expiry(self, input: Option<String>) -> Self
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn get_expiry(&self) -> &Option<String>
pub fn get_expiry(&self) -> &Option<String>
The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn build(self) -> ParticipantTokenCredentials
pub fn build(self) -> ParticipantTokenCredentials
Consumes the builder and constructs a ParticipantTokenCredentials
.
Trait Implementations§
source§impl Clone for ParticipantTokenCredentialsBuilder
impl Clone for ParticipantTokenCredentialsBuilder
source§fn clone(&self) -> ParticipantTokenCredentialsBuilder
fn clone(&self) -> ParticipantTokenCredentialsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ParticipantTokenCredentialsBuilder
impl Default for ParticipantTokenCredentialsBuilder
source§fn default() -> ParticipantTokenCredentialsBuilder
fn default() -> ParticipantTokenCredentialsBuilder
source§impl PartialEq<ParticipantTokenCredentialsBuilder> for ParticipantTokenCredentialsBuilder
impl PartialEq<ParticipantTokenCredentialsBuilder> for ParticipantTokenCredentialsBuilder
source§fn eq(&self, other: &ParticipantTokenCredentialsBuilder) -> bool
fn eq(&self, other: &ParticipantTokenCredentialsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.