pub struct StreamGetCandlesData {
pub close: Decimal,
pub ctm: u64,
pub ctm_string: String,
pub high: Decimal,
pub low: Decimal,
pub open: Decimal,
pub quote_id: QuoteId,
pub symbol: String,
pub vol: Decimal,
}
Fields§
§close: Decimal
Close price in base currency
ctm: u64
Candle start time in CET time zone (Central European Time)
ctm_string: String
String representation of the ctm field
high: Decimal
Highest value in the given period in base currency
low: Decimal
Lowest value in the given period in base currency
open: Decimal
Open price in base currency
quote_id: QuoteId
Source of price
symbol: String
Symbol
vol: Decimal
Volume in lots
Implementations§
Source§impl StreamGetCandlesData
impl StreamGetCandlesData
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.
Sourcepub fn with_quote_id(self, value: impl Into<QuoteId>) -> Self
pub fn with_quote_id(self, value: impl Into<QuoteId>) -> Self
Sets the quote_id
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.
Trait Implementations§
Source§impl Clone for StreamGetCandlesData
impl Clone for StreamGetCandlesData
Source§fn clone(&self) -> StreamGetCandlesData
fn clone(&self) -> StreamGetCandlesData
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 StreamGetCandlesData
impl Debug for StreamGetCandlesData
Source§impl Default for StreamGetCandlesData
impl Default for StreamGetCandlesData
Source§fn default() -> StreamGetCandlesData
fn default() -> StreamGetCandlesData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetCandlesData
impl<'de> Deserialize<'de> for StreamGetCandlesData
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 StreamGetCandlesData
impl PartialEq for StreamGetCandlesData
Source§impl Serialize for StreamGetCandlesData
impl Serialize for StreamGetCandlesData
impl StructuralPartialEq for StreamGetCandlesData
Auto Trait Implementations§
impl Freeze for StreamGetCandlesData
impl RefUnwindSafe for StreamGetCandlesData
impl Send for StreamGetCandlesData
impl Sync for StreamGetCandlesData
impl Unpin for StreamGetCandlesData
impl UnwindSafe for StreamGetCandlesData
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