opcua_types/generated/types/
annotation.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/Part11/6.6.6
14#[derive(Debug, Clone, PartialEq, Default)]
15pub struct Annotation {
16    pub message: opcua::types::string::UAString,
17    pub user_name: opcua::types::string::UAString,
18    pub annotation_time: opcua::types::data_types::UtcTime,
19}
20impl opcua::types::MessageInfo for Annotation {
21    fn type_id(&self) -> opcua::types::ObjectId {
22        opcua::types::ObjectId::Annotation_Encoding_DefaultBinary
23    }
24    fn json_type_id(&self) -> opcua::types::ObjectId {
25        opcua::types::ObjectId::Annotation_Encoding_DefaultJson
26    }
27    fn xml_type_id(&self) -> opcua::types::ObjectId {
28        opcua::types::ObjectId::Annotation_Encoding_DefaultXml
29    }
30    fn data_type_id(&self) -> opcua::types::DataTypeId {
31        opcua::types::DataTypeId::Annotation
32    }
33}