async-opcua-types 0.19.0

OPC UA data types
Documentation
// This file was autogenerated from schemas/1.05/Opc.Ua.NodeSet2.Services.xml by async-opcua-codegen
//
// DO NOT EDIT THIS FILE

// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2024 Adam Lock, Einar Omang
#[allow(unused)]
mod opcua {
    pub(super) use crate as types;
}
#[opcua::types::ua_encodable]
///https://reference.opcfoundation.org/v105/Core/docs/Part11/6.6.6
#[derive(Debug, Clone, PartialEq, Default)]
pub struct Annotation {
    pub message: opcua::types::string::UAString,
    pub user_name: opcua::types::string::UAString,
    pub annotation_time: opcua::types::data_types::UtcTime,
}
impl opcua::types::MessageInfo for Annotation {
    fn type_id(&self) -> opcua::types::ObjectId {
        opcua::types::ObjectId::Annotation_Encoding_DefaultBinary
    }
    fn json_type_id(&self) -> opcua::types::ObjectId {
        opcua::types::ObjectId::Annotation_Encoding_DefaultJson
    }
    fn xml_type_id(&self) -> opcua::types::ObjectId {
        opcua::types::ObjectId::Annotation_Encoding_DefaultXml
    }
    fn data_type_id(&self) -> opcua::types::DataTypeId {
        opcua::types::DataTypeId::Annotation
    }
}