pub struct SubscribedData {
pub id: String,
pub channel: Option<String>,
pub symbol: Option<String>,
}Expand description
Subscribed event data
Fields§
§id: StringSubscription ID (used for unsubscribe)
channel: Option<String>Channel name
symbol: Option<String>Symbol
Trait Implementations§
Source§impl Clone for SubscribedData
impl Clone for SubscribedData
Source§fn clone(&self) -> SubscribedData
fn clone(&self) -> SubscribedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscribedData
impl Debug for SubscribedData
Source§impl<'de> Deserialize<'de> for SubscribedData
impl<'de> Deserialize<'de> for SubscribedData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscribedData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscribedData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubscribedData
impl Serialize for SubscribedData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SubscribedData
impl RefUnwindSafe for SubscribedData
impl Send for SubscribedData
impl Sync for SubscribedData
impl Unpin for SubscribedData
impl UnsafeUnpin for SubscribedData
impl UnwindSafe for SubscribedData
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