pub enum ChatroomMessageType {
CreateChatroom {
chatroom_name: String,
public_key_pem: String,
timestamp: f64,
signature: String,
},
RequestJoin {
chatroom_name: String,
public_key_pem: String,
timestamp: f64,
signature: String,
},
AcceptMember {
chatroom_name: String,
public_key_pem: String,
requester_key_pem: String,
timestamp: f64,
signature: String,
},
PostMessage {
chatroom_name: String,
public_key_pem: String,
text: String,
timestamp: f64,
signature: String,
},
}
Expand description
Chatroom message types
Variants§
Trait Implementations§
Source§impl Clone for ChatroomMessageType
impl Clone for ChatroomMessageType
Source§fn clone(&self) -> ChatroomMessageType
fn clone(&self) -> ChatroomMessageType
Returns a duplicate 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 ChatroomMessageType
impl Debug for ChatroomMessageType
Source§impl<'de> Deserialize<'de> for ChatroomMessageType
impl<'de> Deserialize<'de> for ChatroomMessageType
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
Auto Trait Implementations§
impl Freeze for ChatroomMessageType
impl RefUnwindSafe for ChatroomMessageType
impl Send for ChatroomMessageType
impl Sync for ChatroomMessageType
impl Unpin for ChatroomMessageType
impl UnwindSafe for ChatroomMessageType
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