Struct jfs::Store [] [src]

pub struct Store {
    // some fields omitted
}

Methods

impl Store
[src]

fn new(name: &str) -> Result<Store>

fn new_with_cfg(name: &str, cfg: Config) -> Result<Store>

fn save<T: Encodable>(&self, obj: &T) -> Result<String>

fn save_with_id<T: Encodable>(&self, obj: &T, id: &str) -> Result<String>

fn get<T: Decodable>(&self, id: &str) -> Result<T>

fn get_all<T: Decodable>(&self) -> Result<BTreeMap<String, T>>

fn delete(&self, id: &str) -> Result<()>