pub struct UnsubscribeMessage {
pub event: String,
pub req_id: i64,
pub pair: Option<Vec<String>>,
pub subscription: Unsubscription,
}
Expand description
A message to unsubscribe from the given channel and optionally for a specific pair.
Fields§
§event: String
§req_id: i64
§pair: Option<Vec<String>>
§subscription: Unsubscription
Implementations§
Source§impl UnsubscribeMessage
impl UnsubscribeMessage
pub fn new( req_id: i64, pair: Option<Vec<String>>, unsubscription: Unsubscription, ) -> UnsubscribeMessage
Trait Implementations§
Source§impl Clone for UnsubscribeMessage
impl Clone for UnsubscribeMessage
Source§fn clone(&self) -> UnsubscribeMessage
fn clone(&self) -> UnsubscribeMessage
Returns a copy 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 UnsubscribeMessage
impl Debug for UnsubscribeMessage
Source§impl<'de> Deserialize<'de> for UnsubscribeMessage
impl<'de> Deserialize<'de> for UnsubscribeMessage
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
Source§impl From<SubscribeMessage> for UnsubscribeMessage
impl From<SubscribeMessage> for UnsubscribeMessage
Source§fn from(value: SubscribeMessage) -> Self
fn from(value: SubscribeMessage) -> Self
Create the corresponding UnsubscribeMessage for this SubscribeMessage
Auto Trait Implementations§
impl Freeze for UnsubscribeMessage
impl RefUnwindSafe for UnsubscribeMessage
impl Send for UnsubscribeMessage
impl Sync for UnsubscribeMessage
impl Unpin for UnsubscribeMessage
impl UnwindSafe for UnsubscribeMessage
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