basyx_rs/submodel_element/
embedded_data_specification.rs1use crate::reference::Reference;
7use crate::DataSpecificationContent;
8use serde::{Deserialize, Serialize};
9
10#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
11#[serde(rename_all = "camelCase")]
12pub struct EmbeddedDataSpecification {
13 pub data_specification: Reference,
14 pub data_specification_content: DataSpecificationContent,
15}
16
17impl EmbeddedDataSpecification {
18 pub fn new(
19 data_specification: Reference,
20 data_specification_content: DataSpecificationContent,
21 ) -> Self {
22 Self {
23 data_specification,
24 data_specification_content,
25 }
26 }
27}