pub struct SecurityHolding {Show 14 fields
pub isin: Option<Isin>,
pub wkn: Option<Wkn>,
pub name: String,
pub quantity: Decimal,
pub price: Option<Decimal>,
pub price_currency: Option<Currency>,
pub price_date: Option<NaiveDate>,
pub market_value: Option<Decimal>,
pub market_value_currency: Option<Currency>,
pub acquisition_value: Option<Decimal>,
pub profit_loss: Option<Decimal>,
pub exchange: Option<String>,
pub depot_id: Option<String>,
pub raw: Value,
}Expand description
A single securities position in a depot.
Fields§
§isin: Option<Isin>ISIN of the security.
wkn: Option<Wkn>WKN (German securities identification number).
name: StringHuman-readable name of the security.
quantity: DecimalNumber of shares/units held (can be fractional for funds).
price: Option<Decimal>Current market price per unit.
price_currency: Option<Currency>Currency of the price.
price_date: Option<NaiveDate>Date of the price quote.
market_value: Option<Decimal>Total market value (quantity * price).
market_value_currency: Option<Currency>Currency of the market value.
acquisition_value: Option<Decimal>Original purchase value (Einstandswert), if available.
profit_loss: Option<Decimal>Profit/loss amount, if available.
exchange: Option<String>Exchange/market where the price was quoted.
depot_id: Option<String>Depot number this holding belongs to.
raw: ValueRaw parsed data for debugging/extension.
Trait Implementations§
Source§impl Clone for SecurityHolding
impl Clone for SecurityHolding
Source§fn clone(&self) -> SecurityHolding
fn clone(&self) -> SecurityHolding
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 SecurityHolding
impl Debug for SecurityHolding
Source§impl<'de> Deserialize<'de> for SecurityHolding
impl<'de> Deserialize<'de> for SecurityHolding
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 SecurityHolding
impl RefUnwindSafe for SecurityHolding
impl Send for SecurityHolding
impl Sync for SecurityHolding
impl Unpin for SecurityHolding
impl UnsafeUnpin for SecurityHolding
impl UnwindSafe for SecurityHolding
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