Enum abstract_os::objects::proxy_asset::UncheckedValueRef
source · pub enum UncheckedValueRef {
Pool {
pair: String,
exchange: String,
},
LiquidityToken {},
ValueAs {
asset: String,
multiplier: Decimal,
},
External {
api_name: String,
},
}Expand description
Provides information on how to calculate the value of an asset
Variants§
Pool
A pool address of an asset/asset pair Both assets must be defined in the Proxy_assets state
LiquidityToken
Fields
ValueAs
External
Implementations§
Trait Implementations§
source§impl Clone for UncheckedValueRef
impl Clone for UncheckedValueRef
source§fn clone(&self) -> UncheckedValueRef
fn clone(&self) -> UncheckedValueRef
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 UncheckedValueRef
impl Debug for UncheckedValueRef
source§impl<'de> Deserialize<'de> for UncheckedValueRef
impl<'de> Deserialize<'de> for UncheckedValueRef
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 JsonSchema for UncheckedValueRef
impl JsonSchema for UncheckedValueRef
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq<UncheckedValueRef> for UncheckedValueRef
impl PartialEq<UncheckedValueRef> for UncheckedValueRef
source§fn eq(&self, other: &UncheckedValueRef) -> bool
fn eq(&self, other: &UncheckedValueRef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.