1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// This is not used yet
/*
use std::ops::Deref;
use std::sync::Arc;
use uuid::Uuid;
#[derive(Debug)]
pub struct SchemaInterfaceInner {
type_uuid: Uuid,
name: String,
aliases: Box<[String]>,
}
#[derive(Clone, Debug)]
pub struct SchemaInterface {
inner: Arc<SchemaInterfaceInner>,
}
impl Deref for SchemaInterface {
type Target = SchemaInterfaceInner;
fn deref(&self) -> &Self::Target {
&*self.inner
}
}
impl SchemaInterface {
pub fn new(
name: String,
type_uuid: Uuid,
aliases: Box<[String]>,
) -> Self {
let inner = SchemaInterfaceInner { name, type_uuid, aliases };
SchemaInterface {
inner: Arc::new(inner),
}
}
}
*/