use sim_citizen_derive::Citizen;
use sim_kernel::Symbol;
#[derive(Clone, Debug, PartialEq, Citizen)]
#[citizen(symbol = "table/RemoteDir", version = 0)]
pub struct RemoteDirDescriptor {
pub site_kind: String,
#[citizen(with = "sim_table_core::citizen_fields::symbol")]
pub codec: Symbol,
#[citizen(with = "sim_table_core::citizen_fields::path_segments")]
pub path: Vec<String>,
}
impl Default for RemoteDirDescriptor {
fn default() -> Self {
Self {
site_kind: String::new(),
codec: Symbol::qualified("codec", "binary"),
path: Vec::new(),
}
}
}
pub fn remote_dir_class_symbol() -> Symbol {
Symbol::qualified("table", "RemoteDir")
}