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§
sourcefn apply_item_actions(
&self,
actions: &[ItemAction<T::MaxItemizedBlobSizeBytes>]
) -> Result<ItemizedPage<T>, PageError>
fn apply_item_actions( &self, actions: &[ItemAction<T::MaxItemizedBlobSizeBytes>] ) -> Result<ItemizedPage<T>, PageError>
Applies all actions to specified page and returns the updated page