#[repr(i32)]pub enum KlType {
Unknown = 0,
KlType1min = 1,
Day = 2,
Week = 3,
Month = 4,
Year = 5,
KlType5min = 6,
KlType15min = 7,
KlType30min = 8,
KlType60min = 9,
KlType3min = 10,
Quarter = 11,
}Expand description
枚举值兼容旧协议定义
Variants§
Unknown = 0
未知
KlType1min = 1
1分K
Day = 2
日K
Week = 3
周K
Month = 4
月K
Year = 5
年K
KlType5min = 6
5分K
KlType15min = 7
15分K
KlType30min = 8
30分K
KlType60min = 9
60分K
KlType3min = 10
3分K
Quarter = 11
季K
Implementations§
Source§impl KlType
impl KlType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KlType
impl<'de> Deserialize<'de> for KlType
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 Ord for KlType
impl Ord for KlType
Source§impl PartialOrd for KlType
impl PartialOrd for KlType
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 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