feat: use features to split up api into its respective parts
Edge Storage now has its own client EdgeStorageClient Bunny.net has its own client BunnyClient
This commit is contained in:
parent
53e5238485
commit
914db27a98
12 changed files with 304 additions and 324 deletions
15
src/bunny/pagination.rs
Normal file
15
src/bunny/pagination.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use serde::Deserialize;
|
||||
|
||||
/// Pagination struct used by Bunny.net API
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct Pagination<T> {
|
||||
/// Vector of type T
|
||||
pub items: Vec<T>,
|
||||
/// Current page number
|
||||
pub current_page: i32,
|
||||
/// Total amount of type T
|
||||
pub total_items: i32,
|
||||
/// Has more items
|
||||
pub has_more_items: bool,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue