pub trait QuoteType {
type PriceType;
type VolumeType;
type TurnoverType;
type TradeSessionType;
// Required methods
fn time(&self) -> OffsetDateTime;
fn open(&self) -> Self::PriceType;
fn high(&self) -> Self::PriceType;
fn low(&self) -> Self::PriceType;
fn last_done(&self) -> Self::PriceType;
fn volume(&self) -> Self::VolumeType;
fn turnover(&self) -> Self::TurnoverType;
fn trade_session(&self) -> Self::TradeSessionType;
}Required Associated Types§
Required Methods§
fn time(&self) -> OffsetDateTime
fn open(&self) -> Self::PriceType
fn high(&self) -> Self::PriceType
fn low(&self) -> Self::PriceType
fn last_done(&self) -> Self::PriceType
fn volume(&self) -> Self::VolumeType
fn turnover(&self) -> Self::TurnoverType
fn trade_session(&self) -> Self::TradeSessionType
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".