pub struct PaginationQuery {
pub limit: Option<i32>,
pub offset: Option<i32>,
}Expand description
Pagination query parameters. Flatten into list-endpoint query structs. When not provided, defaults to first page (limit from config, offset=0).
JSON schema
{
"description": "Pagination query parameters. Flatten into list-endpoint query structs.\nWhen not provided, defaults to first page (limit from config, offset=0).",
"type": "object",
"properties": {
"limit": {
"description": "Number of items per page. Default from config, max 200.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"offset": {
"description": "Number of items to skip. Default 0.",
"type": "integer",
"format": "int32",
"minimum": 0.0
}
}
}Fields§
§limit: Option<i32>Number of items per page. Default from config, max 200.
offset: Option<i32>Number of items to skip. Default 0.
Trait Implementations§
Source§impl Clone for PaginationQuery
impl Clone for PaginationQuery
Source§fn clone(&self) -> PaginationQuery
fn clone(&self) -> PaginationQuery
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 moreSource§impl Debug for PaginationQuery
impl Debug for PaginationQuery
Source§impl Default for PaginationQuery
impl Default for PaginationQuery
Source§impl<'de> Deserialize<'de> for PaginationQuery
impl<'de> Deserialize<'de> for PaginationQuery
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 Freeze for PaginationQuery
impl RefUnwindSafe for PaginationQuery
impl Send for PaginationQuery
impl Sync for PaginationQuery
impl Unpin for PaginationQuery
impl UnsafeUnpin for PaginationQuery
impl UnwindSafe for PaginationQuery
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