pub struct PagedResponse<T> {
pub links: Vec<Link>,
pub content: Vec<T>,
pub page: Page,
}Expand description
A generic paged response wrapper.
Fields§
§links: Vec<Link>§content: Vec<T>§page: PageTrait Implementations§
Source§impl<T: Clone> Clone for PagedResponse<T>
impl<T: Clone> Clone for PagedResponse<T>
Source§impl<T: Debug> Debug for PagedResponse<T>
impl<T: Debug> Debug for PagedResponse<T>
Source§impl<'de, T> Deserialize<'de> for PagedResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PagedResponse<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
Source§impl<T: PartialEq> PartialEq for PagedResponse<T>
impl<T: PartialEq> PartialEq for PagedResponse<T>
Source§impl<T> Serialize for PagedResponse<T>where
T: Serialize,
impl<T> Serialize for PagedResponse<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for PagedResponse<T>
Auto Trait Implementations§
impl<T> Forget for PagedResponse<T>
impl<T> Freeze for PagedResponse<T>
impl<T> RefUnwindSafe for PagedResponse<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for PagedResponse<T>
impl<T> Sync for PagedResponse<T>
impl<T> Unpin for PagedResponse<T>
impl<T> UnsafeUnpin for PagedResponse<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for PagedResponse<T>where
Vec<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