Struct comm::client::messages::TextMessage
[−]
[src]
pub struct TextMessage { pub id: Address, pub sender: Address, pub text: String, }
Fields
id: Address
sender: Address
text: String
Methods
impl TextMessage
[src]
pub fn new(sender: Address, text: String) -> TextMessage
[src]
pub fn envelope(self, recipient: Address) -> Envelope
[src]
Trait Implementations
impl Debug for TextMessage
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TextMessage
[src]
fn clone(&self) -> TextMessage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more