1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2024 Adam Lock
//! Certain aliases for OPC-UA data types.
use crate::;
/// This primitive data type is a UInt32 that is used as an identifier, such as a handle.
/// All values, except for 0, are valid. IntegerId = 288,
pub type IntegerId = u32;
/// This Simple DataType is a Double that defines an interval of time in milliseconds (fractions can
/// be used to define sub-millisecond values). Negative values are generally invalid but may have
/// special meanings where the Duration is used. Duration = 290,
pub type Duration = f64;
/// UtcTime = 294,
pub type UtcTime = DateTime;
/// OPC-UA UriString, represented as just a string.
pub type UriString = UAString;
/// OPC-UA AudiDataType, represented as just a ByteString.
pub type AudioDataType = ByteString;
/// OPC-UA LocaleId.
pub type LocaleId = UAString;
/// OPC-UA raw continuation point, alias for ByteString.
pub type ContinuationPoint = ByteString;
/// OPC-UA Index, alias for u32.
pub type Index = u32;
/// OPC-UA Counter, alias for u32.
pub type Counter = u32;
/// OPC-UA VersionTime, alias for u32.
pub type VersionTime = u32;
/// OPC-UA application instance certificate, alias for ByteString.
pub type ApplicationInstanceCertificate = ByteString;
/// OPC-UA SessionAuthenticationToken, alias for NodeId.
pub type SessionAuthenticationToken = NodeId;