Struct aws_sdk_chime::types::RoomMembership
source · #[non_exhaustive]pub struct RoomMembership {
pub room_id: Option<String>,
pub member: Option<Member>,
pub role: Option<RoomMembershipRole>,
pub invited_by: Option<String>,
pub updated_timestamp: Option<DateTime>,
}Expand description
The room membership details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.room_id: Option<String>The room ID.
member: Option<Member>The member details, such as email address, name, member ID, and member type.
role: Option<RoomMembershipRole>The membership role.
invited_by: Option<String>The identifier of the user that invited the room member.
updated_timestamp: Option<DateTime>The room membership update timestamp, in ISO 8601 format.
Implementations§
source§impl RoomMembership
impl RoomMembership
sourcepub fn member(&self) -> Option<&Member>
pub fn member(&self) -> Option<&Member>
The member details, such as email address, name, member ID, and member type.
sourcepub fn role(&self) -> Option<&RoomMembershipRole>
pub fn role(&self) -> Option<&RoomMembershipRole>
The membership role.
sourcepub fn invited_by(&self) -> Option<&str>
pub fn invited_by(&self) -> Option<&str>
The identifier of the user that invited the room member.
sourcepub fn updated_timestamp(&self) -> Option<&DateTime>
pub fn updated_timestamp(&self) -> Option<&DateTime>
The room membership update timestamp, in ISO 8601 format.
source§impl RoomMembership
impl RoomMembership
sourcepub fn builder() -> RoomMembershipBuilder
pub fn builder() -> RoomMembershipBuilder
Creates a new builder-style object to manufacture RoomMembership.
Trait Implementations§
source§impl Clone for RoomMembership
impl Clone for RoomMembership
source§fn clone(&self) -> RoomMembership
fn clone(&self) -> RoomMembership
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 Debug for RoomMembership
impl Debug for RoomMembership
source§impl PartialEq for RoomMembership
impl PartialEq for RoomMembership
source§fn eq(&self, other: &RoomMembership) -> bool
fn eq(&self, other: &RoomMembership) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RoomMembership
Auto Trait Implementations§
impl RefUnwindSafe for RoomMembership
impl Send for RoomMembership
impl Sync for RoomMembership
impl Unpin for RoomMembership
impl UnwindSafe for RoomMembership
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
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>
Creates a shared type from an unshared type.