pub enum Variant {
Show 28 variants
Empty,
Boolean(bool),
SByte(i8),
Byte(u8),
Int16(i16),
UInt16(u16),
Int32(i32),
UInt32(u32),
Int64(i64),
UInt64(u64),
Float(f32),
Double(f64),
String(UAString),
DateTime(Box<DateTime>),
Guid(Box<Guid>),
ByteString(ByteString),
NodeId(Box<NodeId>),
ExpandedNodeId(Box<ExpandedNodeId>),
StatusCode(StatusCode),
QualifiedName(Box<QualifiedName>),
LocalizedText(Box<LocalizedText>),
ExtensionObject(ExtensionObject),
DataValue(Box<DataValue>),
DiagnosticInfo(Box<DiagnosticInfo>),
XmlElement(UAString),
Array(Box<Array>),
NullArray(VariantScalarTypeId),
Reserved(VariantScalarTypeId, ByteString),
}Expand description
A tagged OPC UA value. Arrays carry their element type even when empty.
Variants§
Empty
Boolean(bool)
SByte(i8)
Byte(u8)
Int16(i16)
UInt16(u16)
Int32(i32)
UInt32(u32)
Int64(i64)
UInt64(u64)
Float(f32)
Double(f64)
String(UAString)
DateTime(Box<DateTime>)
Guid(Box<Guid>)
ByteString(ByteString)
NodeId(Box<NodeId>)
ExpandedNodeId(Box<ExpandedNodeId>)
StatusCode(StatusCode)
QualifiedName(Box<QualifiedName>)
LocalizedText(Box<LocalizedText>)
ExtensionObject(ExtensionObject)
DataValue(Box<DataValue>)
DiagnosticInfo(Box<DiagnosticInfo>)
XmlElement(UAString)
Array(Box<Array>)
NullArray(VariantScalarTypeId)
A typed array with a wire length of −1.
Reserved(VariantScalarTypeId, ByteString)
A future built-in type in the reserved range 26–31, received as a ByteString.
Implementations§
Source§impl Variant
impl Variant
Sourcepub fn scalar_type_id(&self) -> Option<VariantScalarTypeId>
pub fn scalar_type_id(&self) -> Option<VariantScalarTypeId>
Built-in ID for a non-null scalar. Arrays carry the element ID in their array value.
Trait Implementations§
Source§impl BinaryDecodable for Variant
impl BinaryDecodable for Variant
Source§impl BinaryEncodable for Variant
impl BinaryEncodable for Variant
Source§impl From<ByteString> for Variant
impl From<ByteString> for Variant
Source§fn from(v: ByteString) -> Self
fn from(v: ByteString) -> Self
Converts to this type from the input type.
Source§impl From<DiagnosticInfo> for Variant
impl From<DiagnosticInfo> for Variant
Source§fn from(v: DiagnosticInfo) -> Self
fn from(v: DiagnosticInfo) -> Self
Converts to this type from the input type.
Source§impl From<ExpandedNodeId> for Variant
impl From<ExpandedNodeId> for Variant
Source§fn from(v: ExpandedNodeId) -> Self
fn from(v: ExpandedNodeId) -> Self
Converts to this type from the input type.
Source§impl From<ExtensionObject> for Variant
impl From<ExtensionObject> for Variant
Source§fn from(v: ExtensionObject) -> Self
fn from(v: ExtensionObject) -> Self
Converts to this type from the input type.
Source§impl From<LocalizedText> for Variant
impl From<LocalizedText> for Variant
Source§fn from(v: LocalizedText) -> Self
fn from(v: LocalizedText) -> Self
Converts to this type from the input type.
Source§impl From<QualifiedName> for Variant
impl From<QualifiedName> for Variant
Source§fn from(v: QualifiedName) -> Self
fn from(v: QualifiedName) -> Self
Converts to this type from the input type.
Source§impl From<StatusCode> for Variant
impl From<StatusCode> for Variant
Source§fn from(v: StatusCode) -> Self
fn from(v: StatusCode) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Variant
Source§impl VariantType for Variant
impl VariantType for Variant
Source§fn variant_type_id() -> VariantScalarTypeId
fn variant_type_id() -> VariantScalarTypeId
Built-in type identifier used when declaring a variable or array element.
Auto Trait Implementations§
impl !RefUnwindSafe for Variant
impl !UnwindSafe for Variant
impl Forget for Variant
impl Freeze for Variant
impl Move for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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