pub struct TradingHoursRecord {
pub quotes: Vec<HoursRecord>,
pub symbol: String,
pub trading: Vec<HoursRecord>,
}
Fields§
§quotes: Vec<HoursRecord>
Array of QUOTES_RECORD
symbol: String
Symbol
trading: Vec<HoursRecord>
Array of TRADING_RECORD
Implementations§
Source§impl TradingHoursRecord
impl TradingHoursRecord
Sourcepub fn with_quotes(self, value: impl Into<Vec<HoursRecord>>) -> Self
pub fn with_quotes(self, value: impl Into<Vec<HoursRecord>>) -> Self
Sets the quotes
field of this struct.
Sourcepub fn with_symbol(self, value: impl Into<String>) -> Self
pub fn with_symbol(self, value: impl Into<String>) -> Self
Sets the symbol
field of this struct.
Sourcepub fn with_trading(self, value: impl Into<Vec<HoursRecord>>) -> Self
pub fn with_trading(self, value: impl Into<Vec<HoursRecord>>) -> Self
Sets the trading
field of this struct.
Trait Implementations§
Source§impl Clone for TradingHoursRecord
impl Clone for TradingHoursRecord
Source§fn clone(&self) -> TradingHoursRecord
fn clone(&self) -> TradingHoursRecord
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 TradingHoursRecord
impl Debug for TradingHoursRecord
Source§impl Default for TradingHoursRecord
impl Default for TradingHoursRecord
Source§fn default() -> TradingHoursRecord
fn default() -> TradingHoursRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TradingHoursRecord
impl<'de> Deserialize<'de> for TradingHoursRecord
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 PartialEq for TradingHoursRecord
impl PartialEq for TradingHoursRecord
Source§impl Serialize for TradingHoursRecord
impl Serialize for TradingHoursRecord
impl StructuralPartialEq for TradingHoursRecord
Auto Trait Implementations§
impl Freeze for TradingHoursRecord
impl RefUnwindSafe for TradingHoursRecord
impl Send for TradingHoursRecord
impl Sync for TradingHoursRecord
impl Unpin for TradingHoursRecord
impl UnwindSafe for TradingHoursRecord
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