#[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 for ParticipantTokenCredentialsBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for ParticipantTokenCredentialsBuilder
Auto Trait Implementations§
impl Freeze for ParticipantTokenCredentialsBuilder
impl RefUnwindSafe for ParticipantTokenCredentialsBuilder
impl Send for ParticipantTokenCredentialsBuilder
impl Sync for ParticipantTokenCredentialsBuilder
impl Unpin for ParticipantTokenCredentialsBuilder
impl UnwindSafe for ParticipantTokenCredentialsBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more