pub struct Holding {
pub symbol: String,
pub name: String,
pub shares: i64,
pub avg_cost: f64,
pub market_value: f64,
pub unrealized_pnl: f64,
}Fields§
§symbol: String§name: String§avg_cost: f64§market_value: f64§unrealized_pnl: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Holding
impl<'de> Deserialize<'de> for Holding
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
Auto Trait Implementations§
impl Freeze for Holding
impl RefUnwindSafe for Holding
impl Send for Holding
impl Sync for Holding
impl Unpin for Holding
impl UnsafeUnpin for Holding
impl UnwindSafe for Holding
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