|
|
@ -32,9 +32,9 @@ pub enum DataTypeReference {
|
|
|
|
Complex { name: String, properties: Value },
|
|
|
|
Complex { name: String, properties: Value },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl Into<PacketDataType> for DataTypeReference {
|
|
|
|
impl From<DataTypeReference> for PacketDataType {
|
|
|
|
fn into(self) -> PacketDataType {
|
|
|
|
fn from(val: DataTypeReference) -> Self {
|
|
|
|
let (name, properties) = match self {
|
|
|
|
let (name, properties) = match val {
|
|
|
|
DataTypeReference::Simple(simple) => (simple, Value::Null),
|
|
|
|
DataTypeReference::Simple(simple) => (simple, Value::Null),
|
|
|
|
DataTypeReference::Complex { name, properties } => (name, properties),
|
|
|
|
DataTypeReference::Complex { name, properties } => (name, properties),
|
|
|
|
};
|
|
|
|
};
|
|
|
|