2022-06-16 14:10:03 +00:00
|
|
|
#[cfg(feature = "with_serde")] use serde::{Deserialize, Serialize};
|
2019-04-04 22:58:06 +00:00
|
|
|
|
2018-09-03 20:40:30 +00:00
|
|
|
pub mod character;
|
2018-09-03 21:14:48 +00:00
|
|
|
pub mod free_company;
|
2018-10-28 21:29:54 +00:00
|
|
|
pub mod linkshell;
|
2018-09-03 20:40:30 +00:00
|
|
|
|
2019-04-04 22:58:06 +00:00
|
|
|
#[derive(Debug, Default)]
|
|
|
|
#[cfg_attr(feature = "with_serde", derive(Deserialize, Serialize))]
|
2018-09-03 20:40:30 +00:00
|
|
|
pub struct Pagination {
|
|
|
|
pub current_page: u64,
|
|
|
|
pub total_pages: u64,
|
|
|
|
pub total_results: u64,
|
|
|
|
}
|
|
|
|
|
2019-04-04 22:58:06 +00:00
|
|
|
#[derive(Debug)]
|
|
|
|
#[cfg_attr(feature = "with_serde", derive(Deserialize, Serialize))]
|
2018-09-03 20:40:30 +00:00
|
|
|
pub struct Paginated<T> {
|
|
|
|
pub pagination: Pagination,
|
|
|
|
pub results: Vec<T>,
|
|
|
|
}
|