Trait structsy::RawAccess

source ·
pub trait RawAccess: RawRead {
    // Required methods
    fn raw_define(&self, desc: Description) -> SRes<bool>;
    fn raw_begin(&self) -> SRes<RawTransaction>;

    // Provided methods
    fn raw_scan(&self, ty_name: &str) -> SRes<RawIter> { ... }
    fn raw_read(&self, id: &str) -> SRes<Option<Record>> { ... }
}
Expand description

Trait for data operations that do not require original structs and enums source code.

Required Methods§

source

fn raw_define(&self, desc: Description) -> SRes<bool>

Declare a new struct or enum from the generic description

source

fn raw_begin(&self) -> SRes<RawTransaction>

Begin a new raw transaction

Provided Methods§

source

fn raw_scan(&self, ty_name: &str) -> SRes<RawIter>

Scan the records of a struct or enum in a raw format

source

fn raw_read(&self, id: &str) -> SRes<Option<Record>>

read a single record in a raw formant from a string id

Implementors§