pub struct TypedPage<T> {
pub items: Vec<T>,
pub has_more: bool,
pub next_page_token: Option<String>,
}Expand description
统一的 typed pagination 返回页。
相比直接暴露各 API 的原始分页字段,该结构统一使用 next_page_token 命名,
方便后续在 Drive / Docs helper 中复用同一套分页范式。
Fields§
§items: Vec<T>当前页结果项。
has_more: bool是否还有下一页。
next_page_token: Option<String>下一页分页标记。
Implementations§
Trait Implementations§
Source§impl<T: PartialEq> PartialEq for TypedPage<T>
impl<T: PartialEq> PartialEq for TypedPage<T>
impl<T: Eq> Eq for TypedPage<T>
impl<T> StructuralPartialEq for TypedPage<T>
Auto Trait Implementations§
impl<T> Freeze for TypedPage<T>
impl<T> RefUnwindSafe for TypedPage<T>where
T: RefUnwindSafe,
impl<T> Send for TypedPage<T>where
T: Send,
impl<T> Sync for TypedPage<T>where
T: Sync,
impl<T> Unpin for TypedPage<T>where
T: Unpin,
impl<T> UnsafeUnpin for TypedPage<T>
impl<T> UnwindSafe for TypedPage<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