Enum opcua_core::prelude::VariantTypeId
source · [−]pub enum VariantTypeId {
Show 27 variants
Empty,
Boolean,
SByte,
Byte,
Int16,
UInt16,
Int32,
UInt32,
Int64,
UInt64,
Float,
Double,
String,
DateTime,
Guid,
StatusCode,
ByteString,
XmlElement,
QualifiedName,
LocalizedText,
NodeId,
ExpandedNodeId,
ExtensionObject,
Variant,
DataValue,
Diagnostic,
Array,
}
Expand description
The variant type id is the type of the variant but without its payload.
Variants
Empty
Boolean
SByte
Byte
Int16
UInt16
Int32
UInt32
Int64
UInt64
Float
Double
String
DateTime
Guid
StatusCode
ByteString
XmlElement
QualifiedName
LocalizedText
NodeId
ExpandedNodeId
ExtensionObject
Variant
DataValue
Diagnostic
Array
Implementations
sourceimpl VariantTypeId
impl VariantTypeId
pub fn encoding_mask(&self) -> u8
pub fn from_encoding_mask(
encoding_mask: u8
) -> Result<VariantTypeId, StatusCode>
sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Tests and returns true if the variant holds a numeric type
sourcepub fn precedence(&self) -> u8
pub fn precedence(&self) -> u8
Returns a data precedence rank for scalar types, OPC UA part 4 table 119. This is used when operators are comparing values of differing types. The type with the highest precedence dictates how values are converted in order to be compared.
Trait Implementations
sourceimpl Clone for VariantTypeId
impl Clone for VariantTypeId
sourcefn clone(&self) -> VariantTypeId
fn clone(&self) -> VariantTypeId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VariantTypeId
impl Debug for VariantTypeId
sourceimpl<'de> Deserialize<'de> for VariantTypeId
impl<'de> Deserialize<'de> for VariantTypeId
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<VariantTypeId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<VariantTypeId, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<VariantTypeId> for VariantTypeId
impl PartialEq<VariantTypeId> for VariantTypeId
sourceimpl Serialize for VariantTypeId
impl Serialize for VariantTypeId
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<'_> TryFrom<&'_ NodeId> for VariantTypeId
impl<'_> TryFrom<&'_ NodeId> for VariantTypeId
impl Copy for VariantTypeId
impl StructuralPartialEq for VariantTypeId
Auto Trait Implementations
impl RefUnwindSafe for VariantTypeId
impl Send for VariantTypeId
impl Sync for VariantTypeId
impl Unpin for VariantTypeId
impl UnwindSafe for VariantTypeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more