opcua_types/generated/types/
server_on_network.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/Part4/5.5.3/#5.5.3.2
14#[derive(Debug, Clone, PartialEq, Default)]
15pub struct ServerOnNetwork {
16    pub record_id: u32,
17    pub server_name: opcua::types::string::UAString,
18    pub discovery_url: opcua::types::string::UAString,
19    pub server_capabilities: Option<Vec<opcua::types::string::UAString>>,
20}
21impl opcua::types::MessageInfo for ServerOnNetwork {
22    fn type_id(&self) -> opcua::types::ObjectId {
23        opcua::types::ObjectId::ServerOnNetwork_Encoding_DefaultBinary
24    }
25    fn json_type_id(&self) -> opcua::types::ObjectId {
26        opcua::types::ObjectId::ServerOnNetwork_Encoding_DefaultJson
27    }
28    fn xml_type_id(&self) -> opcua::types::ObjectId {
29        opcua::types::ObjectId::ServerOnNetwork_Encoding_DefaultXml
30    }
31    fn data_type_id(&self) -> opcua::types::DataTypeId {
32        opcua::types::DataTypeId::ServerOnNetwork
33    }
34}