1
This commit is contained in:
parent
8990640c84
commit
ddfcba0027
@ -8,6 +8,7 @@ use r9;
|
||||
mod test;
|
||||
mod mt;
|
||||
mod metawrap;
|
||||
mod metamgr;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum MessagesUnion
|
||||
@ -71,6 +72,10 @@ macro_rules! getMeta {
|
||||
}
|
||||
}
|
||||
|
||||
struct TestA {
|
||||
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let mut metamgr = MetaMgr::new();
|
||||
let p = metawrap::MtwAliKeyConf{
|
||||
@ -95,4 +100,14 @@ fn main() {
|
||||
|
||||
}
|
||||
}
|
||||
{
|
||||
let mut testA = TestA{};
|
||||
let mut a = RefCell::new(crate::mt::AliKeyConf::new());
|
||||
{
|
||||
let p = RefCell::new(crate::mt::AliKeyConf::new());
|
||||
a = p;
|
||||
let testB = TestA{};
|
||||
testA = testB;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
15
server/notifyserver/src/metamgr.rs
Normal file
15
server/notifyserver/src/metamgr.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use std::any::Any;
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub struct MetaClass {
|
||||
file_name: String,
|
||||
idx: i32,
|
||||
prim_key: String,
|
||||
raw_list: Vec<Box<dyn Any>>,
|
||||
id_hash: HashMap<i64, Box<dyn Any>>,
|
||||
name_hash: HashMap<String, Box<dyn Any>>,
|
||||
}
|
||||
|
||||
pub struct MetaMgr {
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user