Struct barter_data::exchange::coinbase::channel::CoinbaseChannel
source · pub struct CoinbaseChannel(pub &'static str);Expand description
Type that defines how to translate a Barter Subscription into a
Coinbase channel to be subscribed to.
See docs: https://docs.cloud.coinbase.com/exchange/docs/websocket-overview#subscribe
Tuple Fields§
§0: &'static strImplementations§
source§impl CoinbaseChannel
impl CoinbaseChannel
sourcepub const TRADES: Self = _
pub const TRADES: Self = _
Coinbase real-time trades channel.
See docs: https://docs.cloud.coinbase.com/exchange/docs/websocket-channels#match
Trait Implementations§
source§impl AsRef<str> for CoinbaseChannel
impl AsRef<str> for CoinbaseChannel
source§impl Clone for CoinbaseChannel
impl Clone for CoinbaseChannel
source§fn clone(&self) -> CoinbaseChannel
fn clone(&self) -> CoinbaseChannel
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 CoinbaseChannel
impl Debug for CoinbaseChannel
source§impl Hash for CoinbaseChannel
impl Hash for CoinbaseChannel
source§impl Identifier<CoinbaseChannel> for Subscription<Coinbase, PublicTrades>
impl Identifier<CoinbaseChannel> for Subscription<Coinbase, PublicTrades>
fn id(&self) -> CoinbaseChannel
source§impl Ord for CoinbaseChannel
impl Ord for CoinbaseChannel
source§fn cmp(&self, other: &CoinbaseChannel) -> Ordering
fn cmp(&self, other: &CoinbaseChannel) -> 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<CoinbaseChannel> for CoinbaseChannel
impl PartialEq<CoinbaseChannel> for CoinbaseChannel
source§fn eq(&self, other: &CoinbaseChannel) -> bool
fn eq(&self, other: &CoinbaseChannel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<CoinbaseChannel> for CoinbaseChannel
impl PartialOrd<CoinbaseChannel> for CoinbaseChannel
source§fn partial_cmp(&self, other: &CoinbaseChannel) -> Option<Ordering>
fn partial_cmp(&self, other: &CoinbaseChannel) -> 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 CoinbaseChannel
impl Serialize for CoinbaseChannel
impl Copy for CoinbaseChannel
impl Eq for CoinbaseChannel
impl StructuralEq for CoinbaseChannel
impl StructuralPartialEq for CoinbaseChannel
Auto Trait Implementations§
impl RefUnwindSafe for CoinbaseChannel
impl Send for CoinbaseChannel
impl Sync for CoinbaseChannel
impl Unpin for CoinbaseChannel
impl UnwindSafe for CoinbaseChannel
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.