#[non_exhaustive]#[repr(i32)]pub enum KLType {
Show 16 variants
Unknown = 0,
Min1 = 1,
Day = 2,
Week = 3,
Month = 4,
Year = 5,
Min5 = 6,
Min15 = 7,
Min30 = 8,
Min60 = 9,
Min3 = 10,
Quarter = 11,
Min10 = 12,
Min120 = 13,
Min180 = 14,
Min240 = 15,
}Expand description
K 线类型
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.
Unknown = 0
Min1 = 1
Day = 2
Week = 3
Month = 4
Year = 5
Min5 = 6
Min15 = 7
Min30 = 8
Min60 = 9
Min3 = 10
Quarter = 11
Min10 = 12
Min120 = 13
Min180 = 14
Min240 = 15
Implementations§
Source§impl KLType
impl KLType
pub const VALID_PUBLIC: &'static [Self]
pub const fn as_i32(self) -> i32
pub const fn from_i32(v: i32) -> Option<Self>
pub const fn from_public_i32(v: i32) -> Option<Self>
pub fn from_str_alias(s: &str) -> Option<Self>
pub const fn is_minute(self) -> bool
pub const fn sub_type(self) -> Option<SubType>
Sourcepub const fn backend_kline_type(self) -> Option<u32>
pub const fn backend_kline_type(self) -> Option<u32>
Backend FTCmdKline.KlineType value for this public FTAPI KLType.
Most values are identical, but 10/120/180/240 minute cycles are non-contiguous in backend protobuf.
Trait Implementations§
impl Copy for KLType
impl Eq for KLType
impl StructuralPartialEq for KLType
Auto Trait Implementations§
impl Freeze for KLType
impl RefUnwindSafe for KLType
impl Send for KLType
impl Sync for KLType
impl Unpin for KLType
impl UnsafeUnpin for KLType
impl UnwindSafe for KLType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more