opcua_types/generated/types/
range.rs

1// This file was autogenerated from schemas/1.05/Opc.Ua.NodeSet2.Services.xml by async-opcua-codegen
2//
3// DO NOT EDIT THIS FILE
4
5// OPCUA for Rust
6// SPDX-License-Identifier: MPL-2.0
7// Copyright (C) 2017-2024 Adam Lock, Einar Omang
8#[allow(unused)]
9mod opcua {
10    pub(super) use crate as types;
11}
12#[opcua::types::ua_encodable]
13///https://reference.opcfoundation.org/v105/Core/docs/Part8/5.6.2
14#[derive(Debug, Clone, PartialEq, Default)]
15pub struct Range {
16    pub low: f64,
17    pub high: f64,
18}
19impl opcua::types::MessageInfo for Range {
20    fn type_id(&self) -> opcua::types::ObjectId {
21        opcua::types::ObjectId::Range_Encoding_DefaultBinary
22    }
23    fn json_type_id(&self) -> opcua::types::ObjectId {
24        opcua::types::ObjectId::Range_Encoding_DefaultJson
25    }
26    fn xml_type_id(&self) -> opcua::types::ObjectId {
27        opcua::types::ObjectId::Range_Encoding_DefaultXml
28    }
29    fn data_type_id(&self) -> opcua::types::DataTypeId {
30        opcua::types::DataTypeId::Range
31    }
32}