pub struct EnhancedAsset {Show 16 fields
pub id: Uuid,
pub class: String,
pub exchange: AssetExchange,
pub symbol: String,
pub name: Option<String>,
pub status: AssetStatus,
pub tradable: bool,
pub marginable: bool,
pub shortable: bool,
pub easy_to_borrow: bool,
pub fractionable: bool,
pub maintenance_margin_requirement: Option<f64>,
pub min_order_size: Option<String>,
pub min_trade_increment: Option<String>,
pub price_increment: Option<String>,
pub attributes: Vec<AssetAttribute>,
}Expand description
Enhanced asset with all fields.
Fields§
§id: UuidAsset ID.
class: StringAsset class.
exchange: AssetExchangeExchange.
symbol: StringSymbol.
name: Option<String>Name.
status: AssetStatusStatus.
tradable: boolTradable.
marginable: boolMarginable.
shortable: boolShortable.
easy_to_borrow: boolEasy to borrow.
fractionable: boolFractionable.
maintenance_margin_requirement: Option<f64>Maintenance margin requirement.
min_order_size: Option<String>Minimum order size.
min_trade_increment: Option<String>Minimum trade increment.
price_increment: Option<String>Price increment.
attributes: Vec<AssetAttribute>Asset attributes.
Trait Implementations§
Source§impl Clone for EnhancedAsset
impl Clone for EnhancedAsset
Source§fn clone(&self) -> EnhancedAsset
fn clone(&self) -> EnhancedAsset
Returns a duplicate 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 EnhancedAsset
impl Debug for EnhancedAsset
Source§impl<'de> Deserialize<'de> for EnhancedAsset
impl<'de> Deserialize<'de> for EnhancedAsset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnhancedAsset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnhancedAsset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EnhancedAsset
impl Serialize for EnhancedAsset
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EnhancedAsset
impl RefUnwindSafe for EnhancedAsset
impl Send for EnhancedAsset
impl Sync for EnhancedAsset
impl Unpin for EnhancedAsset
impl UnwindSafe for EnhancedAsset
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