Enum nash_protocol::types::exchange::Asset [−][src]
pub enum Asset {
Show 17 variants
ETH,
BAT,
OMG,
USDC,
USDT,
ZRX,
LINK,
QNT,
RLC,
ANT,
BTC,
NEO,
GAS,
TRAC,
GUNTHY,
NNN,
NOIA,
}
Expand description
Assets are the units of value that can be traded in a market We also use this type as a root for encodings for smart contract operations defined in super::sc_payloads
Variants
Implementations
This maps assets onto their representation in the NEO SC protocol. Each asset is represented by two bytes which serve as an identifier
Get blockchain associated with a specific asset
Get asset name as an &str
. This name will be compatible with the
what Nash’s GraphQL protocol wants
Starting with an asset, create a new asset of desired precision.
Trait Implementations
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
Convert AssetOfPrecision back into asset, e.g., for encoding
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl UnwindSafe for Asset
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more