pub enum PaginationType {
Numbered,
NextPrev,
InfiniteScroll,
LoadMore,
Cursor,
Offset,
None,
}Expand description
分页类型枚举
Variants§
Numbered
数字分页(1, 2, 3, …)
NextPrev
上一页 / 下一页模式
InfiniteScroll
无限滚动
LoadMore
点击「加载更多」按钮
Cursor
游标分页(after/before cursor)
Offset
偏移量分页(offset/limit)
None
无分页
Trait Implementations§
Source§impl Clone for PaginationType
impl Clone for PaginationType
Source§fn clone(&self) -> PaginationType
fn clone(&self) -> PaginationType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaginationType
Source§impl Debug for PaginationType
impl Debug for PaginationType
Source§impl<'de> Deserialize<'de> for PaginationType
impl<'de> Deserialize<'de> for PaginationType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PaginationType
Source§impl PartialEq for PaginationType
impl PartialEq for PaginationType
Source§fn eq(&self, other: &PaginationType) -> bool
fn eq(&self, other: &PaginationType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaginationType
impl Serialize for PaginationType
impl StructuralPartialEq for PaginationType
Auto Trait Implementations§
impl Freeze for PaginationType
impl RefUnwindSafe for PaginationType
impl Send for PaginationType
impl Sync for PaginationType
impl Unpin for PaginationType
impl UnsafeUnpin for PaginationType
impl UnwindSafe for PaginationType
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.