pub struct Asset {
pub id: Uuid,
pub class: AssetClass,
pub exchange: String,
pub symbol: String,
pub name: String,
pub status: AssetStatus,
pub tradable: bool,
pub marginable: bool,
pub shortable: bool,
pub easy_to_borrow: bool,
pub fractionable: bool,
}Expand description
Asset information.
Fields§
§id: UuidUnique asset identifier.
class: AssetClassAsset class (equity or crypto).
exchange: StringExchange where the asset trades.
symbol: StringTicker symbol.
name: StringFull asset name.
status: AssetStatusCurrent asset status.
tradable: boolWhether the asset can be traded.
marginable: boolWhether the asset can be used as margin collateral.
shortable: boolWhether the asset can be shorted.
easy_to_borrow: boolWhether the asset is easy to borrow for shorting.
fractionable: boolWhether fractional shares are supported.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Asset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Asset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Asset
impl Serialize for Asset
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 Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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