pub struct RateInfoRecord {
pub close: Decimal,
pub ctm: u64,
pub ctm_string: String,
pub high: Decimal,
pub low: Decimal,
pub open: Decimal,
pub vol: Decimal,
}Expand description
Structure representing details of a rate
Fields§
§close: DecimalValue of close price (shift from open price)
ctm: u64Candle start time in CET/CEST time zone (see Daylight Saving Time, DST)
ctm_string: StringString representation of the ‘ctm’ field
high: DecimalHighest value in the given period (shift from open price)
low: DecimalLowest value in the given period (shift from open price)
open: DecimalOpen price (in base currency * 10 to the power of digits)
vol: DecimalVolume in lots
Implementations§
Source§impl RateInfoRecord
impl RateInfoRecord
Sourcepub fn with_close(self, value: impl Into<Decimal>) -> Self
pub fn with_close(self, value: impl Into<Decimal>) -> Self
Sets the close field of this struct.
Sourcepub fn with_ctm_string(self, value: impl Into<String>) -> Self
pub fn with_ctm_string(self, value: impl Into<String>) -> Self
Sets the ctm_string field of this struct.
Trait Implementations§
Source§impl Clone for RateInfoRecord
impl Clone for RateInfoRecord
Source§fn clone(&self) -> RateInfoRecord
fn clone(&self) -> RateInfoRecord
Returns a copy 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 RateInfoRecord
impl Debug for RateInfoRecord
Source§impl Default for RateInfoRecord
impl Default for RateInfoRecord
Source§fn default() -> RateInfoRecord
fn default() -> RateInfoRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateInfoRecord
impl<'de> Deserialize<'de> for RateInfoRecord
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 RateInfoRecord
impl PartialEq for RateInfoRecord
Source§impl Serialize for RateInfoRecord
impl Serialize for RateInfoRecord
impl StructuralPartialEq for RateInfoRecord
Auto Trait Implementations§
impl Freeze for RateInfoRecord
impl RefUnwindSafe for RateInfoRecord
impl Send for RateInfoRecord
impl Sync for RateInfoRecord
impl Unpin for RateInfoRecord
impl UnwindSafe for RateInfoRecord
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