#[non_exhaustive]pub struct CreateChatTokenInput {
pub room_identifier: Option<String>,
pub user_id: Option<String>,
pub capabilities: Option<Vec<ChatTokenCapability>>,
pub session_duration_in_minutes: Option<i32>,
pub attributes: Option<HashMap<String, String>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.room_identifier: Option<String>Identifier of the room that the client is trying to access. Currently this must be an ARN.
user_id: Option<String>Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.
capabilities: Option<Vec<ChatTokenCapability>>Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
session_duration_in_minutes: Option<i32>Session duration (in minutes), after which the session expires. Default: 60 (1 hour).
attributes: Option<HashMap<String, String>>Application-provided attributes to encode into the token and attach to a chat session. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total.
Implementations§
source§impl CreateChatTokenInput
impl CreateChatTokenInput
sourcepub fn room_identifier(&self) -> Option<&str>
pub fn room_identifier(&self) -> Option<&str>
Identifier of the room that the client is trying to access. Currently this must be an ARN.
sourcepub fn user_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
Application-provided ID that uniquely identifies the user associated with this token. This can be any UTF-8 encoded text.
sourcepub fn capabilities(&self) -> &[ChatTokenCapability]
pub fn capabilities(&self) -> &[ChatTokenCapability]
Set of capabilities that the user is allowed to perform in the room. Default: None (the capability to view messages is implicitly included in all requests).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .capabilities.is_none().
sourcepub fn session_duration_in_minutes(&self) -> Option<i32>
pub fn session_duration_in_minutes(&self) -> Option<i32>
Session duration (in minutes), after which the session expires. Default: 60 (1 hour).
source§impl CreateChatTokenInput
impl CreateChatTokenInput
sourcepub fn builder() -> CreateChatTokenInputBuilder
pub fn builder() -> CreateChatTokenInputBuilder
Creates a new builder-style object to manufacture CreateChatTokenInput.
Trait Implementations§
source§impl Clone for CreateChatTokenInput
impl Clone for CreateChatTokenInput
source§fn clone(&self) -> CreateChatTokenInput
fn clone(&self) -> CreateChatTokenInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateChatTokenInput
impl Debug for CreateChatTokenInput
source§impl PartialEq for CreateChatTokenInput
impl PartialEq for CreateChatTokenInput
source§fn eq(&self, other: &CreateChatTokenInput) -> bool
fn eq(&self, other: &CreateChatTokenInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateChatTokenInput
Auto Trait Implementations§
impl Freeze for CreateChatTokenInput
impl RefUnwindSafe for CreateChatTokenInput
impl Send for CreateChatTokenInput
impl Sync for CreateChatTokenInput
impl Unpin for CreateChatTokenInput
impl UnwindSafe for CreateChatTokenInput
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