pub struct ChatQueue {
pub chat: Option<String>,
pub items: Vec<QueuedMessage>,
pub paused: Option<QueuePause>,
}Expand description
The queue of the chat a client looks at (chat: None for a new chat: always empty).
Sent after crate::ServerMsg::Transcript and whenever it changes; replaces the
client’s copy.
Fields§
§chat: Option<String>§items: Vec<QueuedMessage>In the order they will be sent.
paused: Option<QueuePause>The queue waits for the user instead of sending the next message when the chat is free.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatQueue
impl<'de> Deserialize<'de> for ChatQueue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChatQueue
impl StructuralPartialEq for ChatQueue
Auto Trait Implementations§
impl Forget for ChatQueue
impl Freeze for ChatQueue
impl Move for ChatQueue
impl RefUnwindSafe for ChatQueue
impl Send for ChatQueue
impl Sync for ChatQueue
impl Unpin for ChatQueue
impl UnsafeUnpin for ChatQueue
impl UnwindSafe for ChatQueue
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