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: DecimalClose price in base currency
ctm: u64Candle start time in CET time zone (Central European Time)
ctm_string: StringString representation of the ctm field
high: DecimalHighest value in the given period in base currency
low: DecimalLowest value in the given period in base currency
open: DecimalOpen price in base currency
quote_id: QuoteIdSource of price
symbol: StringSymbol
vol: DecimalVolume 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 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 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)