pub struct DBEntry {
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
A data structure representing an entry in the database, containing details about a financial trading instrument.
§Fields
symbol- The unique identifier or trading symbol for this financial instrument.epic- The Epic identifier as provided by the exchange for this instrument.name- A human-readable name that describes the financial instrument.instrument_type- The classification or type of the financial instrument (e.g., stock, bond, future, etc.).exchange- The name of the exchange where this instrument is traded.expiry- The expiration date and time of the instrument, if applicable.last_update- TheDateTimeindicating when this record was last updated.
This structure includes traits such as Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, and Default
for ease of use, serialization, comparison, and hashing operations.
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<'de> Deserialize<'de> for DBEntry
impl<'de> Deserialize<'de> for DBEntry
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 From<&MarketData> for DBEntry
impl From<&MarketData> for DBEntry
Source§fn from(market: &MarketData) -> Self
fn from(market: &MarketData) -> Self
Converts to this type from the input type.
Source§impl From<&MarketNode> for DBEntry
impl From<&MarketNode> for DBEntry
Source§fn from(value: &MarketNode) -> Self
fn from(value: &MarketNode) -> Self
Converts to this type from the input type.
Source§impl From<MarketData> for DBEntry
impl From<MarketData> for DBEntry
Source§fn from(market: MarketData) -> Self
fn from(market: MarketData) -> Self
Converts to this type from the input type.
Source§impl From<MarketNode> for DBEntry
impl From<MarketNode> for DBEntry
Source§fn from(value: MarketNode) -> Self
fn from(value: MarketNode) -> Self
Converts to this type from the input type.
impl Eq for DBEntry
impl StructuralPartialEq for DBEntry
Auto Trait Implementations§
impl Freeze for DBEntry
impl RefUnwindSafe for DBEntry
impl Send for DBEntry
impl Sync for DBEntry
impl Unpin for DBEntry
impl UnwindSafe for DBEntry
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§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<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.