pub struct BitfinexMessage {
pub channel_id: u32,
pub payload: BitfinexPayload,
}Expand description
Bitfinex message received over
WebSocket relating to an active
Subscription.
The message is associated with the original Subscription using the
channel_id field as the SubscriptionId.
§Raw Payload Examples
§Heartbeat
See docs: https://docs.bitfinex.com/docs/ws-general#heartbeating
[420191,"hb"]§Side::Buy Trade
See docs: https://docs.bitfinex.com/reference/ws-public-trades
[420191,"te",[1225484398,1665452200022,0.08980641,19027.02807752]]§Side::Sell Trade
See docs: https://docs.bitfinex.com/reference/ws-public-trades
[420191,"te",[1225484398,1665452200022,-0.08980641,19027.02807752]]Fields§
§channel_id: u32§payload: BitfinexPayloadTrait Implementations§
Source§impl Clone for BitfinexMessage
impl Clone for BitfinexMessage
Source§fn clone(&self) -> BitfinexMessage
fn clone(&self) -> BitfinexMessage
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 BitfinexMessage
impl Debug for BitfinexMessage
Source§impl<'de> Deserialize<'de> for BitfinexMessage
impl<'de> Deserialize<'de> for BitfinexMessage
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 Identifier<Option<SubscriptionId>> for BitfinexMessage
impl Identifier<Option<SubscriptionId>> for BitfinexMessage
fn id(&self) -> Option<SubscriptionId>
Source§impl PartialEq for BitfinexMessage
impl PartialEq for BitfinexMessage
Source§impl PartialOrd for BitfinexMessage
impl PartialOrd for BitfinexMessage
Source§impl Serialize for BitfinexMessage
impl Serialize for BitfinexMessage
impl Copy for BitfinexMessage
impl StructuralPartialEq for BitfinexMessage
Auto Trait Implementations§
impl Freeze for BitfinexMessage
impl RefUnwindSafe for BitfinexMessage
impl Send for BitfinexMessage
impl Sync for BitfinexMessage
impl Unpin for BitfinexMessage
impl UnwindSafe for BitfinexMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more