pub struct PageQuery {
pub before: Option<Id>,
pub after: Option<Id>,
pub around: Option<Id>,
pub limit: Option<u32>,
}Expand description
Query for id-keyed lists: at most one cursor and an optional limit (1–100,
default 50). No cursor means the newest page, newest-first. before pages newest-first,
after oldest-first, around centered.
Fields§
§before: Option<Id>Items older than this id.
after: Option<Id>Items newer than this id.
around: Option<Id>Items around this id.
limit: Option<u32>Page size, 1–100 (default 50).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageQuery
impl<'de> Deserialize<'de> for PageQuery
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 PageQuery
Source§impl From<PageQuery> for TimelineQuery
impl From<PageQuery> for TimelineQuery
Source§impl JsonSchema for PageQuery
impl JsonSchema for PageQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for PageQuery
Auto Trait Implementations§
impl Forget for PageQuery
impl Freeze for PageQuery
impl Move for PageQuery
impl RefUnwindSafe for PageQuery
impl Send for PageQuery
impl Sync for PageQuery
impl Unpin for PageQuery
impl UnsafeUnpin for PageQuery
impl UnwindSafe for PageQuery
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