Struct opcua_types::data_value::DataValue
[−]
[src]
pub struct DataValue {
pub value: Option<Variant>,
pub status: Option<StatusCode>,
pub source_timestamp: Option<DateTime>,
pub source_picoseconds: Option<Int16>,
pub server_timestamp: Option<DateTime>,
pub server_picoseconds: Option<Int16>,
}Data type ID 23
Fields
value: Option<Variant>
The value. BaseDataType Not present if the Value bit in the EncodingMask is False.
status: Option<StatusCode>
The status associated with the value. Not present if the StatusCode bit in the EncodingMask is False
source_timestamp: Option<DateTime>
The source timestamp associated with the value. Not present if the SourceTimestamp bit in the EncodingMask is False.
source_picoseconds: Option<Int16>
The number of 10 picosecond intervals for the SourceTimestamp. Not present if the SourcePicoSeconds bit in the EncodingMask is False. If the source timestamp is missing the picoseconds are ignored.
server_timestamp: Option<DateTime>
The Server timestamp associated with the value. Not present if the ServerTimestamp bit in the EncodingMask is False.
server_picoseconds: Option<Int16>
The number of 10 picosecond intervals for the ServerTimestamp. Not present if the ServerPicoSeconds bit in the EncodingMask is False. If the Server timestamp is missing the picoseconds are ignored.
Methods
impl DataValue[src]
fn new<T>(value: T) -> DataValue where
T: 'static + Into<Variant>, [src]
T: 'static + Into<Variant>,
fn null() -> DataValue[src]
Trait Implementations
impl Debug for DataValue[src]
impl Clone for DataValue[src]
fn clone(&self) -> DataValue[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for DataValue[src]
fn eq(&self, __arg_0: &DataValue) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DataValue) -> bool[src]
This method tests for !=.
impl BinaryEncoder<DataValue> for DataValue[src]
fn byte_len(&self) -> usize[src]
Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more
fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>[src]
Encodes the instance to the write stream.
fn decode<S: Read>(stream: &mut S) -> EncodingResult<Self>[src]
Decodes an instance from the read stream.