pub struct KlineInterval(pub String);Expand description
Typed kline interval. Inner string is the exchange-canonical form after formatting (e.g. “1m”, “1h”, “1D”). Equality is by the inner str.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for KlineInterval
impl Clone for KlineInterval
Source§fn clone(&self) -> KlineInterval
fn clone(&self) -> KlineInterval
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 KlineInterval
impl Debug for KlineInterval
Source§impl<'de> Deserialize<'de> for KlineInterval
impl<'de> Deserialize<'de> for KlineInterval
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 Display for KlineInterval
impl Display for KlineInterval
impl Eq for KlineInterval
Source§impl Hash for KlineInterval
impl Hash for KlineInterval
Source§impl PartialEq for KlineInterval
impl PartialEq for KlineInterval
Source§fn eq(&self, other: &KlineInterval) -> bool
fn eq(&self, other: &KlineInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KlineInterval
impl Serialize for KlineInterval
impl StructuralPartialEq for KlineInterval
Auto Trait Implementations§
impl Freeze for KlineInterval
impl RefUnwindSafe for KlineInterval
impl Send for KlineInterval
impl Sync for KlineInterval
impl Unpin for KlineInterval
impl UnsafeUnpin for KlineInterval
impl UnwindSafe for KlineInterval
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