pub struct RoomMetadata {
pub online_users: Vec<UserInfo>,
pub host: Option<String>,
pub message_count: usize,
}Expand description
Frozen snapshot of room state for plugin consumption.
Fields§
§online_users: Vec<UserInfo>Users currently online with their status.
host: Option<String>Username of the room host.
message_count: usizeTotal messages in the chat file.
Auto Trait Implementations§
impl Freeze for RoomMetadata
impl RefUnwindSafe for RoomMetadata
impl Send for RoomMetadata
impl Sync for RoomMetadata
impl Unpin for RoomMetadata
impl UnsafeUnpin for RoomMetadata
impl UnwindSafe for RoomMetadata
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>
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>
Converts
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>
Converts
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