Type Alias pallet_stateful_storage::types::ItemizedPage
source · 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
- Itemized is limited by
Config::MaxItemizedPageSizeBytes
- Paginated is limited by
Config::MaxPaginatedPageSizeBytes
Trait Implementations§
source§impl<T: Config> ItemizedOperations<T> for ItemizedPage<T>
impl<T: Config> ItemizedOperations<T> for ItemizedPage<T>
source§fn apply_item_actions(
&self,
actions: &[ItemAction<T::MaxItemizedBlobSizeBytes>]
) -> Result<Self, PageError>
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