pub struct PaginatedResponse {
pub items: Vec<UserResponse>,
pub total: i64,
}Expand description
Paginated response body for list endpoints.
JSON schema
{
"description": "Paginated response body for list endpoints.",
"type": "object",
"required": [
"items",
"total"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"total": {
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§items: Vec<UserResponse>§total: i64Trait Implementations§
Source§impl Clone for PaginatedResponse
impl Clone for PaginatedResponse
Source§fn clone(&self) -> PaginatedResponse
fn clone(&self) -> PaginatedResponse
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 PaginatedResponse
impl Debug for PaginatedResponse
Source§impl<'de> Deserialize<'de> for PaginatedResponse
impl<'de> Deserialize<'de> for PaginatedResponse
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 PaginatedResponse
impl RefUnwindSafe for PaginatedResponse
impl Send for PaginatedResponse
impl Sync for PaginatedResponse
impl Unpin for PaginatedResponse
impl UnsafeUnpin for PaginatedResponse
impl UnwindSafe for PaginatedResponse
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