pub struct Response {
pub comments: PaginationResponse<CommentWithItem>,
}
Fields§
§comments: PaginationResponse<CommentWithItem>
Trait Implementations§
Source§impl PaginatedResponse for Response
impl PaginatedResponse for Response
Source§type Item = CommentWithItem
type Item = CommentWithItem
The type of item that the paginated response contains.
Source§fn items(&self) -> &[Self::Item]
fn items(&self) -> &[Self::Item]
Returns a slice of the items in the current page of the paginated response.
Source§fn next_page(&self) -> Option<Pagination>
fn next_page(&self) -> Option<Pagination>
Returns the pagination of the next page of the paginated response.
Source§impl Response for Response
impl Response for Response
Source§fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>,
) -> Result<Self, FromHttpError>
fn try_from_http_response<T: AsRef<[u8]>>( response: Response<T>, ) -> Result<Self, FromHttpError>
Converts an HTTP response into a result of
Self
, where Self
refers to the implementing type. Read moreimpl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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