#[repr(i32)]pub enum CandleWidth {
OneSecond = 1,
FiveSecond = 5,
OneMinute = 60,
TwoMinute = 120,
ThreeMinute = 180,
FifteenMinute = 900,
OneHour = 3_600,
OneDay = 86_400,
}Expand description
Candle bar width. Serializes as the integer number of seconds.
Variants§
OneSecond = 1
FiveSecond = 5
OneMinute = 60
TwoMinute = 120
ThreeMinute = 180
FifteenMinute = 900
OneHour = 3_600
OneDay = 86_400
Implementations§
Trait Implementations§
Source§impl Clone for CandleWidth
impl Clone for CandleWidth
Source§fn clone(&self) -> CandleWidth
fn clone(&self) -> CandleWidth
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 CandleWidth
impl Debug for CandleWidth
Source§impl<'de> Deserialize<'de> for CandleWidth
impl<'de> Deserialize<'de> for CandleWidth
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 Hash for CandleWidth
impl Hash for CandleWidth
Source§impl Ord for CandleWidth
impl Ord for CandleWidth
Source§fn cmp(&self, other: &CandleWidth) -> Ordering
fn cmp(&self, other: &CandleWidth) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CandleWidth
impl PartialEq for CandleWidth
Source§impl PartialOrd for CandleWidth
impl PartialOrd for CandleWidth
Source§impl Serialize for CandleWidth
impl Serialize for CandleWidth
impl Copy for CandleWidth
impl Eq for CandleWidth
impl StructuralPartialEq for CandleWidth
Auto Trait Implementations§
impl Freeze for CandleWidth
impl RefUnwindSafe for CandleWidth
impl Send for CandleWidth
impl Sync for CandleWidth
impl Unpin for CandleWidth
impl UnsafeUnpin for CandleWidth
impl UnwindSafe for CandleWidth
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