pub struct DBEntryResponse {
pub symbol: String,
pub epic: String,
pub name: String,
pub instrument_type: InstrumentType,
pub exchange: String,
pub expiry: String,
pub last_update: DateTime<Utc>,
}Expand description
Database entry response for market instruments
Fields§
§symbol: StringThe trading symbol identifier
epic: StringThe Epic identifier used by the exchange
name: StringHuman-readable name of the instrument
instrument_type: InstrumentTypeInstrument type classification
exchange: StringThe exchange where this instrument is traded
expiry: StringExpiration date and time for the instrument
last_update: DateTime<Utc>Timestamp of the last update to this record
Trait Implementations§
Source§impl Clone for DBEntryResponse
impl Clone for DBEntryResponse
Source§fn clone(&self) -> DBEntryResponse
fn clone(&self) -> DBEntryResponse
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 DBEntryResponse
impl Debug for DBEntryResponse
Source§impl Default for DBEntryResponse
impl Default for DBEntryResponse
Source§fn default() -> DBEntryResponse
fn default() -> DBEntryResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DBEntryResponse
impl<'de> Deserialize<'de> for DBEntryResponse
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
Source§impl Display for DBEntryResponse
impl Display for DBEntryResponse
Source§impl From<&MarketData> for DBEntryResponse
impl From<&MarketData> for DBEntryResponse
Source§fn from(market: &MarketData) -> Self
fn from(market: &MarketData) -> Self
Converts to this type from the input type.
Source§impl From<&MarketNode> for DBEntryResponse
impl From<&MarketNode> for DBEntryResponse
Source§fn from(value: &MarketNode) -> Self
fn from(value: &MarketNode) -> Self
Converts to this type from the input type.
Source§impl From<MarketData> for DBEntryResponse
impl From<MarketData> for DBEntryResponse
Source§fn from(market: MarketData) -> Self
fn from(market: MarketData) -> Self
Converts to this type from the input type.
Source§impl From<MarketNode> for DBEntryResponse
impl From<MarketNode> for DBEntryResponse
Source§fn from(value: MarketNode) -> Self
fn from(value: MarketNode) -> Self
Converts to this type from the input type.
Source§impl Hash for DBEntryResponse
impl Hash for DBEntryResponse
Source§impl PartialEq for DBEntryResponse
impl PartialEq for DBEntryResponse
Source§impl Serialize for DBEntryResponse
impl Serialize for DBEntryResponse
impl Eq for DBEntryResponse
impl StructuralPartialEq for DBEntryResponse
Auto Trait Implementations§
impl Freeze for DBEntryResponse
impl RefUnwindSafe for DBEntryResponse
impl Send for DBEntryResponse
impl Sync for DBEntryResponse
impl Unpin for DBEntryResponse
impl UnwindSafe for DBEntryResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.