#[non_exhaustive]pub struct PageOptions {
pub page_rows: usize,
pub pages_kept: usize,
}Expand description
How a PagedModel pages: the rows of a page and how many pages it
keeps.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page_rows: usizeRows a page holds: 256 unless set, at least 1.
pages_kept: usizePages kept, 64 unless set, at least 1: those farthest from the rows shown go first (fetched again if shown again). Pages of the rows shown are kept even past it.
Implementations§
Source§impl PageOptions
impl PageOptions
Trait Implementations§
Source§impl Clone for PageOptions
impl Clone for PageOptions
Source§impl Debug for PageOptions
impl Debug for PageOptions
Auto Trait Implementations§
impl Freeze for PageOptions
impl RefUnwindSafe for PageOptions
impl Send for PageOptions
impl Sync for PageOptions
impl Unpin for PageOptions
impl UnsafeUnpin for PageOptions
impl UnwindSafe for PageOptions
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more