#[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 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 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
Returns a copy 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 Default for ParticipantTokenCredentialsBuilder
impl Default for ParticipantTokenCredentialsBuilder
source§fn default() -> ParticipantTokenCredentialsBuilder
fn default() -> ParticipantTokenCredentialsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ParticipantTokenCredentialsBuilder> for ParticipantTokenCredentialsBuilder
impl PartialEq<ParticipantTokenCredentialsBuilder> for ParticipantTokenCredentialsBuilder
source§fn eq(&self, other: &ParticipantTokenCredentialsBuilder) -> bool
fn eq(&self, other: &ParticipantTokenCredentialsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ParticipantTokenCredentialsBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more