pub struct Message<T>where
T: for<'a> Deserialize<'a>,{
pub channel_id: i64,
pub message: T,
pub channel_name: String,
pub pair: String,
}
Expand description
Generic websocket message
Fields§
§channel_id: i64
§message: T
§channel_name: String
§pair: String
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Message<T>where
T: for<'a> Deserialize<'a>,
impl<'de, T> Deserialize<'de> for Message<T>where
T: for<'a> Deserialize<'a>,
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<T> StructuralPartialEq for Message<T>where
T: for<'a> Deserialize<'a>,
Auto Trait Implementations§
impl<T> Freeze for Message<T>where
T: Freeze,
impl<T> RefUnwindSafe for Message<T>where
T: RefUnwindSafe,
impl<T> Send for Message<T>where
T: Send,
impl<T> Sync for Message<T>where
T: Sync,
impl<T> Unpin for Message<T>where
T: Unpin,
impl<T> UnwindSafe for Message<T>where
T: UnwindSafe,
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