#[non_exhaustive]pub enum ScalarValue {
Show 24 variants
Unsupported,
Boolean(Boolean),
SByte(SByte),
Byte(Byte),
Int16(Int16),
UInt16(UInt16),
Int32(Int32),
UInt32(UInt32),
Int64(Int64),
UInt64(UInt64),
Float(Float),
Double(Double),
String(String),
DateTime(DateTime),
Guid(Guid),
ByteString(ByteString),
NodeId(NodeId),
ExpandedNodeId(ExpandedNodeId),
StatusCode(StatusCode),
QualifiedName(QualifiedName),
LocalizedText(LocalizedText),
Structure(ExtensionObject),
Enumeration(Enumeration),
Argument(Argument),
}Expand description
Scalar value.
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::to_scalar() et al. instead.
Boolean(Boolean)
SByte(SByte)
Byte(Byte)
Int16(Int16)
UInt16(UInt16)
Int32(Int32)
UInt32(UInt32)
Int64(Int64)
UInt64(UInt64)
Float(Float)
Double(Double)
String(String)
DateTime(DateTime)
Guid(Guid)
ByteString(ByteString)
NodeId(NodeId)
ExpandedNodeId(ExpandedNodeId)
StatusCode(StatusCode)
QualifiedName(QualifiedName)
LocalizedText(LocalizedText)
Structure(ExtensionObject)
Enumeration(Enumeration)
Argument(Argument)
Trait Implementations§
Source§impl Clone for ScalarValue
impl Clone for ScalarValue
Source§fn clone(&self) -> ScalarValue
fn clone(&self) -> ScalarValue
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 moreAuto Trait Implementations§
impl Freeze for ScalarValue
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnwindSafe for ScalarValue
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