pub struct Meta {
pub current_page: u64,
pub last_page: u64,
pub per_page: u64,
pub total: u64,
pub query: Option<Query>,
pub seed: Option<String>,
}Expand description
Meta informations for the search results, used mostly to continue the search
Fields§
§current_page: u64The current page
last_page: u64The last page (e.g. page count)
per_page: u64How many wallpapers per page
total: u64Total wallpapers count
Meaning every page, except the last, will have total wallpapers, you can know how many there are in the last by doing:
(last_page * per_page) - total
query: Option<Query>The query information, see Query variants for more informations
seed: Option<String>Random seed used when using SortingType::Random
This can be fed back into the search request to not repeat wallpapers
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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 Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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