Struct barter_data::exchange::bitfinex::subscription::BitfinexPlatformStatus
source · pub struct BitfinexPlatformStatus { /* private fields */ }Expand description
Bitfinex platform status message containing the server we are connecting
to, the version of the API, and if it is in maintenance mode.
Raw Payload Examples
See docs: https://docs.bitfinex.com/docs/ws-general#info-messages
Platform Status Operative
{
"event": "info",
"version": 2,
"serverId": ""
"platform": {
"status": 1
}
}
Platform Status In Maintenance
{
"event": "info",
"version": 2,
"serverId": ""
"platform": {
"status": 0
}
}
Trait Implementations§
source§impl Clone for BitfinexPlatformStatus
impl Clone for BitfinexPlatformStatus
source§fn clone(&self) -> BitfinexPlatformStatus
fn clone(&self) -> BitfinexPlatformStatus
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 BitfinexPlatformStatus
impl Debug for BitfinexPlatformStatus
source§impl<'de> Deserialize<'de> for BitfinexPlatformStatus
impl<'de> Deserialize<'de> for BitfinexPlatformStatus
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 BitfinexPlatformStatus
impl Hash for BitfinexPlatformStatus
source§impl Ord for BitfinexPlatformStatus
impl Ord for BitfinexPlatformStatus
source§fn cmp(&self, other: &BitfinexPlatformStatus) -> Ordering
fn cmp(&self, other: &BitfinexPlatformStatus) -> 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<BitfinexPlatformStatus> for BitfinexPlatformStatus
impl PartialEq<BitfinexPlatformStatus> for BitfinexPlatformStatus
source§fn eq(&self, other: &BitfinexPlatformStatus) -> bool
fn eq(&self, other: &BitfinexPlatformStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<BitfinexPlatformStatus> for BitfinexPlatformStatus
impl PartialOrd<BitfinexPlatformStatus> for BitfinexPlatformStatus
source§fn partial_cmp(&self, other: &BitfinexPlatformStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &BitfinexPlatformStatus) -> 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 BitfinexPlatformStatus
impl Serialize for BitfinexPlatformStatus
impl Eq for BitfinexPlatformStatus
impl StructuralEq for BitfinexPlatformStatus
impl StructuralPartialEq for BitfinexPlatformStatus
Auto Trait Implementations§
impl RefUnwindSafe for BitfinexPlatformStatus
impl Send for BitfinexPlatformStatus
impl Sync for BitfinexPlatformStatus
impl Unpin for BitfinexPlatformStatus
impl UnwindSafe for BitfinexPlatformStatus
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.