pub struct CandlestickData {
pub o: Option<String>,
pub h: Option<String>,
pub l: Option<String>,
pub c: Option<String>,
}Expand description
CandlestickData : The price data (open, high, low, close) for the Candlestick representation.
Fields§
§o: Option<String>The first (open) price in the time-range represented by the candlestick.
h: Option<String>The highest price in the time-range represented by the candlestick.
l: Option<String>The lowest price in the time-range represented by the candlestick.
c: Option<String>The last (closing) price in the time-range represented by the candlestick.
Implementations§
Source§impl CandlestickData
impl CandlestickData
Sourcepub fn new() -> CandlestickData
pub fn new() -> CandlestickData
The price data (open, high, low, close) for the Candlestick representation.
Trait Implementations§
Source§impl Clone for CandlestickData
impl Clone for CandlestickData
Source§fn clone(&self) -> CandlestickData
fn clone(&self) -> CandlestickData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CandlestickData
impl Debug for CandlestickData
Source§impl Default for CandlestickData
impl Default for CandlestickData
Source§fn default() -> CandlestickData
fn default() -> CandlestickData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CandlestickData
impl<'de> Deserialize<'de> for CandlestickData
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 CandlestickData
impl PartialEq for CandlestickData
Source§impl Serialize for CandlestickData
impl Serialize for CandlestickData
impl StructuralPartialEq for CandlestickData
Auto Trait Implementations§
impl Freeze for CandlestickData
impl RefUnwindSafe for CandlestickData
impl Send for CandlestickData
impl Sync for CandlestickData
impl Unpin for CandlestickData
impl UnsafeUnpin for CandlestickData
impl UnwindSafe for CandlestickData
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