#[non_exhaustive]
pub enum Source {
Close,
Open,
High,
Low,
HL2,
TP,
Volume,
VolumedPrice,
}
Expand description
Source enum represents common parts of a Candle
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Close
Close part of a candle
Open
Open part of a candle
High
High part of a candle
Low
Low part of a candle
HL2
(High+Low)/2 part of a candle
TP
Typical price of a candle
Volume
Volume part of a candle
VolumedPrice
Same as typical price * volume
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more