pub type ItemizedPage<T> = Page<<T as Config>::MaxItemizedPageSizeBytes>;
Expand description

Itemized page type

Aliased Type§

struct ItemizedPage<T> {
    pub nonce: u16,
    pub data: BoundedVec<u8, <T as Config>::MaxItemizedPageSizeBytes>,
}

Fields§

§nonce: u16

Incremental nonce to eliminate of signature replay attacks

§data: BoundedVec<u8, <T as Config>::MaxItemizedPageSizeBytes>

Data for the page

Trait Implementations§

source§

impl<T: Config> ItemizedOperations<T> for ItemizedPage<T>

source§

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

Applies all actions to specified page and returns the updated page This has O(n) complexity when n is the number of all the bytes in that itemized storage

source§

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

Parses all the items inside an ItemPage This has O(n) complexity when n is the number of all the bytes in that itemized storage