#[repr(u8)]pub enum CandleWidth {
OneSecond = 1,
FiveSecond = 2,
OneMinute = 4,
FifteenMinute = 8,
OneHour = 16,
OneDay = 32,
}Variants§
Implementations§
Trait Implementations§
Source§impl BitAnd for CandleWidth
impl BitAnd for CandleWidth
Source§impl BitFlag for CandleWidth
impl BitFlag for CandleWidth
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for CandleWidth
impl BitOr for CandleWidth
Source§impl BitXor for CandleWidth
impl BitXor for CandleWidth
Source§impl Clone for CandleWidth
impl Clone for CandleWidth
Source§fn clone(&self) -> CandleWidth
fn clone(&self) -> CandleWidth
Returns a copy 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 From<CandleWidth> for TimeDelta
impl From<CandleWidth> for TimeDelta
Source§fn from(val: CandleWidth) -> Self
fn from(val: CandleWidth) -> Self
Converts to this type from the input type.
Source§impl FromStr for CandleWidth
impl FromStr for CandleWidth
Source§impl Hash for CandleWidth
impl Hash for CandleWidth
Source§impl JsonSchema for CandleWidth
impl JsonSchema for CandleWidth
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Not for CandleWidth
impl Not 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 RawBitFlags for CandleWidth
impl RawBitFlags for CandleWidth
Source§const EMPTY: Self::Numeric = {transmute(0x00): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x3f): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x3f): <marketdata::candle_width::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CandleWidth>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CandleWidth>"
The name of the type for debug formatting purposes. Read more
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 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