validate_directory_page

Function validate_directory_page 

Source
pub fn validate_directory_page<E, C, S>(
    current_cursor: Option<&C>,
    seen_cursors: &HashSet<C, S>,
    previous_stable_key: Option<&[u8]>,
    maximum_entries: usize,
    page: &DavDirectoryPage<E, C>,
) -> Result<(), DavDirectoryPageValidationError>
where E: DavDirectoryEntry, C: Eq + Hash, S: BuildHasher,
Expand description

Validates product page bounds, ordering and cursor progress before protocol consumption.

ยงErrors

Returns an error when limits, ordering, entries, or cursor progress are invalid.