#[repr(i32)]pub enum DataType {
Show 35 variants
Unknown = 0,
Int8 = 1,
Int16 = 2,
Int32 = 3,
Int64 = 4,
UInt8 = 5,
UInt16 = 6,
UInt32 = 7,
UInt64 = 8,
Float = 9,
Double = 10,
Boolean = 11,
String = 12,
DateTime = 13,
Text = 14,
Uuid = 15,
DataSet = 16,
Bytes = 17,
File = 18,
Template = 19,
PropertySet = 20,
PropertySetList = 21,
Int8Array = 22,
Int16Array = 23,
Int32Array = 24,
Int64Array = 25,
UInt8Array = 26,
UInt16Array = 27,
UInt32Array = 28,
UInt64Array = 29,
FloatArray = 30,
DoubleArray = 31,
BooleanArray = 32,
StringArray = 33,
DateTimeArray = 34,
}Expand description
Indexes of Data Types
Variants§
Unknown = 0
Unknown placeholder for future expansion.
Int8 = 1
Basic Types
Int16 = 2
Int32 = 3
Int64 = 4
UInt8 = 5
UInt16 = 6
UInt32 = 7
UInt64 = 8
Float = 9
Double = 10
Boolean = 11
String = 12
DateTime = 13
Text = 14
Uuid = 15
Additional Metric Types
DataSet = 16
Bytes = 17
File = 18
Template = 19
PropertySet = 20
Additional PropertyValue Types
PropertySetList = 21
Int8Array = 22
Array Types
Int16Array = 23
Int32Array = 24
Int64Array = 25
UInt8Array = 26
UInt16Array = 27
UInt32Array = 28
UInt64Array = 29
FloatArray = 30
DoubleArray = 31
BooleanArray = 32
StringArray = 33
DateTimeArray = 34
Implementations§
Source§impl DataType
impl DataType
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 Ord for DataType
impl Ord for DataType
Source§impl PartialOrd for DataType
impl PartialOrd for DataType
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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