Struct telescope::templates::pagination::PaginationInfo [−][src]
pub struct PaginationInfo {
left_sep: bool,
prev: u64,
current: NonZeroU64,
next: u64,
right_sep: bool,
last: u64,
}
Expand description
Pagination template fields.
Fields
left_sep: bool
Flag to include left side ellipsis/separator.
prev: u64
Previous page number (current - 1).
current: NonZeroU64
Current page number.
next: u64
Next page number (current + 1).
right_sep: bool
Flag to include right side ellipsis/separator
last: u64
Last page number.
Implementations
Create a new pagination info object if there are enough results to require multiple pages.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PaginationInfo
impl Send for PaginationInfo
impl Sync for PaginationInfo
impl Unpin for PaginationInfo
impl UnwindSafe for PaginationInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more