[][src]Trait structsy::internal::Persistent

pub trait Persistent {
    fn get_name() -> &'static str;
fn get_description() -> StructDescription;
fn write(&self, write: &mut dyn Write) -> SRes<()>;
fn read(read: &mut dyn Read) -> SRes<Self>
    where
        Self: Sized
;
fn declare(db: &mut dyn Sytx) -> SRes<()>;
fn put_indexes(&self, tx: &mut dyn Sytx, id: &Ref<Self>) -> SRes<()>
    where
        Self: Sized
;
fn remove_indexes(&self, tx: &mut dyn Sytx, id: &Ref<Self>) -> SRes<()>
    where
        Self: Sized
; }

Trait implemented by persistent struct, implementation automatically generated by structsy_derive.

Required methods

fn get_name() -> &'static str

fn get_description() -> StructDescription

fn write(&self, write: &mut dyn Write) -> SRes<()>

fn read(read: &mut dyn Read) -> SRes<Self> where
    Self: Sized

fn declare(db: &mut dyn Sytx) -> SRes<()>

fn put_indexes(&self, tx: &mut dyn Sytx, id: &Ref<Self>) -> SRes<()> where
    Self: Sized

fn remove_indexes(&self, tx: &mut dyn Sytx, id: &Ref<Self>) -> SRes<()> where
    Self: Sized

Loading content...

Implementors

Loading content...