sim_table_remote/
citizen.rs1use sim_citizen_derive::Citizen;
2use sim_kernel::Symbol;
3
4#[derive(Clone, Debug, PartialEq, Citizen)]
7#[citizen(symbol = "table/RemoteDir", version = 0)]
8pub struct RemoteDirDescriptor {
9 pub site_kind: String,
11 #[citizen(with = "sim_table_core::citizen_fields::symbol")]
13 pub codec: Symbol,
14 #[citizen(with = "sim_table_core::citizen_fields::path_segments")]
16 pub path: Vec<String>,
17}
18
19impl Default for RemoteDirDescriptor {
20 fn default() -> Self {
21 Self {
22 site_kind: String::new(),
23 codec: Symbol::qualified("codec", "binary"),
24 path: Vec::new(),
25 }
26 }
27}
28
29pub fn remote_dir_class_symbol() -> Symbol {
31 Symbol::qualified("table", "RemoteDir")
32}