pub trait ItemizedOperations<T: Config> {
    // Required methods
    fn apply_item_actions(
        &self,
        actions: &[ItemAction<T::MaxItemizedBlobSizeBytes>]
    ) -> Result<ItemizedPage<T>, PageError>;
    fn try_parse(
        &self,
        include_header: bool
    ) -> Result<ParsedItemPage<'_>, PageError>;
}
Expand description

Operations on Itemized storage

Required Methods§

source

fn apply_item_actions( &self, actions: &[ItemAction<T::MaxItemizedBlobSizeBytes>] ) -> Result<ItemizedPage<T>, PageError>

Applies all actions to specified page and returns the updated page

source

fn try_parse( &self, include_header: bool ) -> Result<ParsedItemPage<'_>, PageError>

Parses all the items inside an ItemPage

Implementors§