pub struct CouponStockFragment {
pub counter_id: String,
pub counter_name: String,
pub market: String,
pub markets: Vec<String>,
pub underlying_type: CouponTargetType,
pub underlying_type_raw: Option<i32>,
pub amounts: BTreeMap<String, String>,
}Expand description
Terms of a stock fragment coupon (stock_fragment)
Fields§
§counter_id: StringCounter ID
counter_name: StringCounter name
market: StringMarket
markets: Vec<String>Markets
underlying_type: CouponTargetTypeInstrument type the coupon applies to
underlying_type_raw: Option<i32>The server’s numeric code of underlying_type, also when it is a code
this SDK does not know (underlying_type is then Unknown); None
when the value is missing or is not a code
amounts: BTreeMap<String, String>Amounts, as returned by the server (key-ordered)
Implementations§
Source§impl CouponStockFragment
impl CouponStockFragment
pub fn serialize<__S>(
__self: &CouponStockFragment,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> CouponStockFragmentwhere
CouponStockFragment: Default,
impl<'de> CouponStockFragmentwhere
CouponStockFragment: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<CouponStockFragment, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for CouponStockFragment
impl Clone for CouponStockFragment
Source§impl Debug for CouponStockFragment
impl Debug for CouponStockFragment
Source§impl Default for CouponStockFragment
impl Default for CouponStockFragment
Source§impl<'de> Deserialize<'de> for CouponStockFragment
impl<'de> Deserialize<'de> for CouponStockFragment
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 CouponStockFragment
impl RefUnwindSafe for CouponStockFragment
impl Send for CouponStockFragment
impl Sync for CouponStockFragment
impl Unpin for CouponStockFragment
impl UnsafeUnpin for CouponStockFragment
impl UnwindSafe for CouponStockFragment
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