pub struct Candlestick {
pub time: Option<String>,
pub bid: Option<Box<CandlestickData>>,
pub ask: Option<Box<CandlestickData>>,
pub mid: Option<Box<CandlestickData>>,
pub volume: Option<i32>,
pub complete: Option<bool>,
}Expand description
Candlestick : The Candlestick representation
Fields§
§time: Option<String>A date and time value using either RFC3339 or UNIX time representation. The RFC 3339 representation is a string conforming to https://tools.ietf.org/rfc/rfc3339.txt. The Unix representation is a string representing the number of seconds since the Unix Epoch (January 1st, 1970 at UTC). The value is a fractional number, where the fractional part represents a fraction of a second (up to nine decimal places).
bid: Option<Box<CandlestickData>>§ask: Option<Box<CandlestickData>>§mid: Option<Box<CandlestickData>>§volume: Option<i32>The number of prices created during the time-range represented by the candlestick.
complete: Option<bool>A flag indicating if the candlestick is complete. A complete candlestick is one whose ending time is not in the future.
Implementations§
Source§impl Candlestick
impl Candlestick
Sourcepub fn new() -> Candlestick
pub fn new() -> Candlestick
The Candlestick representation
Trait Implementations§
Source§impl Clone for Candlestick
impl Clone for Candlestick
Source§fn clone(&self) -> Candlestick
fn clone(&self) -> Candlestick
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 Candlestick
impl Debug for Candlestick
Source§impl Default for Candlestick
impl Default for Candlestick
Source§fn default() -> Candlestick
fn default() -> Candlestick
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Candlestick
impl<'de> Deserialize<'de> for Candlestick
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 Candlestick
impl PartialEq for Candlestick
Source§impl Serialize for Candlestick
impl Serialize for Candlestick
impl StructuralPartialEq for Candlestick
Auto Trait Implementations§
impl Freeze for Candlestick
impl RefUnwindSafe for Candlestick
impl Send for Candlestick
impl Sync for Candlestick
impl Unpin for Candlestick
impl UnsafeUnpin for Candlestick
impl UnwindSafe for Candlestick
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