Trait nxtnote_savefile_format::crud::blocks::BlockCrud[][src]

pub trait BlockCrud {
    fn create_block(&self, ranking: BlockRanking, block_type: String) -> Block;
fn retrieve_block(&self, block_id: &str) -> Block;
fn retrieve_block_with_properties(
        &self,
        block_id: &str
    ) -> (Block, SavedBlockProperties);
fn retrieve_all_blocks(&self) -> Vec<Block>;
fn retrieve_all_blocks_with_properties(
        &self
    ) -> Vec<(Block, SavedBlockProperties)>;
fn update_block_rank(&self, block_id: &str, ranking: BlockRanking) -> Block;
fn delete_block(&self, block_id: &str); }

Required methods

Implementations on Foreign Types

Implementors