Struct barter_data::exchange::bitfinex::subscription::BitfinexSubResponse
source · pub struct BitfinexSubResponse {
pub channel: String,
pub market: String,
pub channel_id: BitfinexChannelId,
}Expand description
Bitfinex subscription success response variants for each channel.
Raw Payload Examples
See docs: https://docs.bitfinex.com/docs/ws-general
Subscription Trades Success
{
event: "subscribed",
channel: "trades",
chanId: CHANNEL_ID,
symbol: "tBTCUSD"
pair: "BTCUSD"
}
Subscription Failure
{
"event": "error",
"msg": ERROR_MSG,
"code": ERROR_CODE
}Fields§
§channel: String§market: String§channel_id: BitfinexChannelIdTrait Implementations§
source§impl Clone for BitfinexSubResponse
impl Clone for BitfinexSubResponse
source§fn clone(&self) -> BitfinexSubResponse
fn clone(&self) -> BitfinexSubResponse
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 BitfinexSubResponse
impl Debug for BitfinexSubResponse
source§impl<'de> Deserialize<'de> for BitfinexSubResponse
impl<'de> Deserialize<'de> for BitfinexSubResponse
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 Hash for BitfinexSubResponse
impl Hash for BitfinexSubResponse
source§impl Ord for BitfinexSubResponse
impl Ord for BitfinexSubResponse
source§fn cmp(&self, other: &BitfinexSubResponse) -> Ordering
fn cmp(&self, other: &BitfinexSubResponse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BitfinexSubResponse> for BitfinexSubResponse
impl PartialEq<BitfinexSubResponse> for BitfinexSubResponse
source§fn eq(&self, other: &BitfinexSubResponse) -> bool
fn eq(&self, other: &BitfinexSubResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<BitfinexSubResponse> for BitfinexSubResponse
impl PartialOrd<BitfinexSubResponse> for BitfinexSubResponse
source§fn partial_cmp(&self, other: &BitfinexSubResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &BitfinexSubResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for BitfinexSubResponse
impl Serialize for BitfinexSubResponse
impl Eq for BitfinexSubResponse
impl StructuralEq for BitfinexSubResponse
impl StructuralPartialEq for BitfinexSubResponse
Auto Trait Implementations§
impl RefUnwindSafe for BitfinexSubResponse
impl Send for BitfinexSubResponse
impl Sync for BitfinexSubResponse
impl Unpin for BitfinexSubResponse
impl UnwindSafe for BitfinexSubResponse
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.