pub struct JsonMessage { /* private fields */ }Expand description
JSON message wrapper
Implementations§
Source§impl JsonMessage
impl JsonMessage
Sourcepub fn from_string(s: String) -> Self
pub fn from_string(s: String) -> Self
Create from string
Sourcepub fn to_message(&self) -> Result<Message>
pub fn to_message(&self) -> Result<Message>
Convert to message
Auto Trait Implementations§
impl !Freeze for JsonMessage
impl RefUnwindSafe for JsonMessage
impl Send for JsonMessage
impl Sync for JsonMessage
impl Unpin for JsonMessage
impl UnsafeUnpin for JsonMessage
impl UnwindSafe for JsonMessage
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