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: Decimal
Value of close price (shift from open price)
ctm: u64
Candle start time in CET/CEST time zone (see Daylight Saving Time, DST)
ctm_string: String
String representation of the ‘ctm’ field
high: Decimal
Highest value in the given period (shift from open price)
low: Decimal
Lowest value in the given period (shift from open price)
open: Decimal
Open price (in base currency * 10 to the power of digits)
vol: Decimal
Volume 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 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 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 From<StreamGetCandlesData> for RateInfoRecord
impl From<StreamGetCandlesData> for RateInfoRecord
Source§fn from(value: StreamGetCandlesData) -> Self
fn from(value: StreamGetCandlesData) -> Self
Converts to this type from the input type.
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