#[non_exhaustive]pub struct CreateChannelMembershipInput {
pub channel_arn: Option<String>,
pub member_arn: Option<String>,
pub type: Option<ChannelMembershipType>,
pub chime_bearer: Option<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.channel_arn: Option<String>
The ARN of the channel to which you're adding users.
member_arn: Option<String>
The ARN of the member you want to add to the channel.
type: Option<ChannelMembershipType>
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
chime_bearer: Option<String>
The AppInstanceUserArn
of the user that makes the API call.
Implementations§
source§impl CreateChannelMembershipInput
impl CreateChannelMembershipInput
sourcepub fn channel_arn(&self) -> Option<&str>
pub fn channel_arn(&self) -> Option<&str>
The ARN of the channel to which you're adding users.
sourcepub fn member_arn(&self) -> Option<&str>
pub fn member_arn(&self) -> Option<&str>
The ARN of the member you want to add to the channel.
sourcepub fn type(&self) -> Option<&ChannelMembershipType>
pub fn type(&self) -> Option<&ChannelMembershipType>
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
sourcepub fn chime_bearer(&self) -> Option<&str>
pub fn chime_bearer(&self) -> Option<&str>
The AppInstanceUserArn
of the user that makes the API call.
source§impl CreateChannelMembershipInput
impl CreateChannelMembershipInput
sourcepub fn builder() -> CreateChannelMembershipInputBuilder
pub fn builder() -> CreateChannelMembershipInputBuilder
Creates a new builder-style object to manufacture CreateChannelMembershipInput
.
Trait Implementations§
source§impl Clone for CreateChannelMembershipInput
impl Clone for CreateChannelMembershipInput
source§fn clone(&self) -> CreateChannelMembershipInput
fn clone(&self) -> CreateChannelMembershipInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateChannelMembershipInput
impl Debug for CreateChannelMembershipInput
source§impl PartialEq for CreateChannelMembershipInput
impl PartialEq for CreateChannelMembershipInput
source§fn eq(&self, other: &CreateChannelMembershipInput) -> bool
fn eq(&self, other: &CreateChannelMembershipInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateChannelMembershipInput
Auto Trait Implementations§
impl Freeze for CreateChannelMembershipInput
impl RefUnwindSafe for CreateChannelMembershipInput
impl Send for CreateChannelMembershipInput
impl Sync for CreateChannelMembershipInput
impl Unpin for CreateChannelMembershipInput
impl UnwindSafe for CreateChannelMembershipInput
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