pub enum MarketAddress {
MangoMarketAddress(String),
DriftMarketAddress(String),
ZetaMarketAddress(String),
ZoMarketAddress(String),
}
Variants§
MangoMarketAddress(String)
/ Market address for a mango perpetual market. A full list can be found here: https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/ids.json
DriftMarketAddress(String)
/ Market address for a drift perpetual market. A full list can be found here: https://github.com/drift-labs/protocol-v1/blob/master/sdk/src/constants/markets.ts
ZetaMarketAddress(String)
/ Market address for a zeta perpetual market.
ZoMarketAddress(String)
/ Market address for a 01 protocol perpetual market.
Implementations§
source§impl MarketAddress
impl MarketAddress
sourcepub fn merge<B>(
field: &mut Option<MarketAddress>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<MarketAddress>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for MarketAddress
impl Clone for MarketAddress
source§fn clone(&self) -> MarketAddress
fn clone(&self) -> MarketAddress
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 MarketAddress
impl Debug for MarketAddress
source§impl PartialEq for MarketAddress
impl PartialEq for MarketAddress
source§fn eq(&self, other: &MarketAddress) -> bool
fn eq(&self, other: &MarketAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MarketAddress
Auto Trait Implementations§
impl RefUnwindSafe for MarketAddress
impl Send for MarketAddress
impl Sync for MarketAddress
impl Unpin for MarketAddress
impl UnwindSafe for MarketAddress
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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