diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-10 09:11:35 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-10 09:11:35 +0000 |
| commit | 5a43e5e38bea77d63074a8db9a319e3ff77fd75a (patch) | |
| tree | 2906b8c3292f126ddef9e7801f054b7294f97820 /src/pagination.rs | |
| parent | e8c799cb65f58c1e9a4b2809489ef3b5760638d8 (diff) | |
Add pagination
Diffstat (limited to 'src/pagination.rs')
| -rw-r--r-- | src/pagination.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pagination.rs b/src/pagination.rs new file mode 100644 index 0000000..1f902b4 --- /dev/null +++ b/src/pagination.rs @@ -0,0 +1,7 @@ +use serde::Deserialize; + +#[derive(Deserialize, Debug)] +pub struct Pagination { + #[serde(skip_serializing_if = "Option::is_none")] + pub page: Option<i64>, +} |
