pub struct PageResult<T> {
pub has_more: bool,
pub next_cursor: Option<i64>,
pub list: Vec<T>,
}
Fields§
§has_more: bool
是否还有更多的数据
next_cursor: Option<i64>
下一次分页的游标,如果has_more为false,表示没有更多的分页数据。
list: Vec<T>
列表
Trait Implementations§
Source§impl<T: Debug> Debug for PageResult<T>
impl<T: Debug> Debug for PageResult<T>
Source§impl<T: Default> Default for PageResult<T>
impl<T: Default> Default for PageResult<T>
Source§fn default() -> PageResult<T>
fn default() -> PageResult<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for PageResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PageResult<T>where
T: Deserialize<'de>,
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
Auto Trait Implementations§
impl<T> Freeze for PageResult<T>
impl<T> RefUnwindSafe for PageResult<T>where
T: RefUnwindSafe,
impl<T> Send for PageResult<T>where
T: Send,
impl<T> Sync for PageResult<T>where
T: Sync,
impl<T> Unpin for PageResult<T>where
T: Unpin,
impl<T> UnwindSafe for PageResult<T>where
T: UnwindSafe,
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