pub struct CouponQuote {
pub current_end_time: Option<OffsetDateTime>,
pub inapplicable: bool,
pub investor_type: QuoteInvestorType,
pub investor_type_raw: Option<i32>,
pub manual_activate: bool,
pub markets: Vec<String>,
pub member_investor_type: i32,
pub pair_spu_no: String,
pub quote_duration: i64,
pub quote_market: String,
pub quote_tags: Vec<String>,
pub superposition: bool,
}Expand description
Terms of a quote (market data) or fundamental-data coupon (quote /
fundamental)
Fields§
§current_end_time: Option<OffsetDateTime>Current end time (None when not set)
inapplicable: boolWhether the coupon is inapplicable, as returned by the server
investor_type: QuoteInvestorTypeInvestor type the coupon applies to
investor_type_raw: Option<i32>The server’s numeric code of investor_type, also when it is a code
this SDK does not know (investor_type is then Unknown); None when
the value is missing or is not a code
manual_activate: boolWhether the coupon is activated manually
markets: Vec<String>Markets
member_investor_type: i32Investor type of the member, as returned by the server
pair_spu_no: StringPaired SPU number, as returned by the server
quote_duration: i64Quote duration in seconds (the app reads 200 years or more as lifetime)
quote_market: StringQuote market
Quote tags
superposition: boolWhether the coupon can be combined with other coupons
Implementations§
Source§impl CouponQuote
impl CouponQuote
pub fn serialize<__S>(
__self: &CouponQuote,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> CouponQuotewhere
CouponQuote: Default,
impl<'de> CouponQuotewhere
CouponQuote: Default,
pub fn deserialize<__D>(__deserializer: __D) -> Result<CouponQuote, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for CouponQuote
impl Clone for CouponQuote
Source§impl Debug for CouponQuote
impl Debug for CouponQuote
Source§impl Default for CouponQuote
impl Default for CouponQuote
Source§impl<'de> Deserialize<'de> for CouponQuote
impl<'de> Deserialize<'de> for CouponQuote
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 CouponQuote
impl RefUnwindSafe for CouponQuote
impl Send for CouponQuote
impl Sync for CouponQuote
impl Unpin for CouponQuote
impl UnsafeUnpin for CouponQuote
impl UnwindSafe for CouponQuote
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