Skip to main content

opcua_types/
data_types.rs

1// OPCUA for Rust
2// SPDX-License-Identifier: MPL-2.0
3// Copyright (C) 2017-2022 Adam Lock
4
5use crate::date_time::DateTime;
6
7/// This primitive data type is a UInt32 that is used as an identifier, such as a handle.
8/// All values, except for 0, are valid. IntegerId = 288,
9pub type IntegerId = u32;
10
11/// This Simple DataType is a Double that defines an interval of time in milliseconds (fractions can
12/// be used to define sub-millisecond values). Negative values are generally invalid but may have
13/// special meanings where the Duration is used. Duration = 290,
14pub type Duration = f64;
15
16/// UtcTime = 294,
17pub type UtcTime = DateTime;