#[non_exhaustive]pub enum ValueType {
Show 24 variants
Unsupported,
Boolean,
SByte,
Byte,
Int16,
UInt16,
Int32,
UInt32,
Int64,
UInt64,
Float,
Double,
String,
DateTime,
Guid,
ByteString,
NodeId,
ExpandedNodeId,
StatusCode,
QualifiedName,
LocalizedText,
Structure,
Enumeration,
Argument,
}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.
Unsupported
Unsupported data type.
This is a sentinel for an existing and set value that we do not support (yet). Depending on
the circumstances, you might be able to use Variant::as_scalar() et al. instead.
Boolean
SByte
Byte
Int16
UInt16
Int32
UInt32
Int64
UInt64
Float
Double
String
DateTime
Guid
ByteString
NodeId
ExpandedNodeId
StatusCode
QualifiedName
LocalizedText
Structure
Enumeration
Argument
Implementations§
Source§impl ValueType
impl ValueType
Sourcepub fn from_data_type(node_id: &NodeId) -> Self
pub fn from_data_type(node_id: &NodeId) -> Self
Gets value type from data type’s node ID.
This gets the ValueType corresponding to the given data type’s node ID. If the node ID
is not a known data type, ValueType::Unsupported is returned.
Trait Implementations§
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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