pub struct TransferStock {Show 15 fields
pub code: String,
pub name: String,
pub name_en: String,
pub market: String,
pub counter_id: String,
pub amount: Option<Decimal>,
pub currency: String,
pub cost: Option<Decimal>,
pub state_code: TransferStockState,
pub state_code_raw: Option<i32>,
pub street_amount: Option<Decimal>,
pub nominee_amount: Option<Decimal>,
pub own_amount: Option<Decimal>,
pub certificate_count: i64,
pub position_side: String,
}Expand description
One stock in a stock transfer application
Storage keys of uploaded proof documents are intentionally not modelled.
Fields§
§code: StringStock code
name: StringStock name
name_en: StringStock name in English
market: StringMarket
counter_id: StringCounter ID
amount: Option<Decimal>Quantity
currency: StringCurrency
cost: Option<Decimal>Cost price
state_code: TransferStockStateState code of this stock in the transfer (the server’s state)
state_code_raw: Option<i32>The server’s numeric code of state_code, also when it is a code this
SDK does not know (state_code is then Unknown); None when the
value is missing or is not a code
street_amount: Option<Decimal>Quantity held in street name, as returned by the server
nominee_amount: Option<Decimal>Quantity held by a nominee, as returned by the server
own_amount: Option<Decimal>Quantity held in the holder’s own name, as returned by the server
certificate_count: i64Number of share certificates, as returned by the server
position_side: StringPosition side
Implementations§
Source§impl TransferStock
impl TransferStock
pub fn serialize<__S>(
__self: &TransferStock,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> TransferStockwhere
TransferStock: Default,
impl<'de> TransferStockwhere
TransferStock: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferStock, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for TransferStock
impl Clone for TransferStock
Source§impl Debug for TransferStock
impl Debug for TransferStock
Source§impl Default for TransferStock
impl Default for TransferStock
Source§impl<'de> Deserialize<'de> for TransferStock
impl<'de> Deserialize<'de> for TransferStock
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransferStock
impl RefUnwindSafe for TransferStock
impl Send for TransferStock
impl Sync for TransferStock
impl Unpin for TransferStock
impl UnsafeUnpin for TransferStock
impl UnwindSafe for TransferStock
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more