Struct mostro_core::Message
source · pub struct Message {
pub version: u8,
pub order_id: Option<Uuid>,
pub pubkey: Option<String>,
pub action: Action,
pub content: Option<Content>,
}
Expand description
Use this Message to establish communication between users and Mostro
Fields§
§version: u8
§order_id: Option<Uuid>
Most of the times messages are related to an order
pubkey: Option<String>
Real pubkey of the user hidden in the encrypted message, used with ephemeral identities
action: Action
Action to be taken
content: Option<Content>
Message content
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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