Skip to content

Commit

Permalink
paginate
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Apr 1, 2024
1 parent a31cd68 commit c550201
Show file tree
Hide file tree
Showing 14 changed files with 588 additions and 195 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "movie_collection_rust"
version = "0.10.29"
version = "0.10.30"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion movie_collection_http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "movie_collection_http"
version = "0.10.29"
version = "0.10.30"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand Down
24 changes: 24 additions & 0 deletions movie_collection_http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,30 @@ struct _PlexFilenameRequest {
limit: Option<u64>,
}

#[derive(Default, Clone, Debug, Serialize, Deserialize, Into, From)]
pub struct TraktWatchlistRequest {
pub query: Option<StackString>,
pub source: Option<TvShowSourceWrapper>,
pub offset: Option<u64>,
pub limit: Option<u64>,
}

derive_rweb_schema!(TraktWatchlistRequest, _TraktWatchlistRequest);

#[allow(dead_code)]
#[derive(Schema)]
#[schema(component = "TraktWatchlistRequest")]
pub struct _TraktWatchlistRequest {
#[schema(description = "Search Query")]
pub query: Option<StackString>,
#[schema(description = "Tv Show Source")]
pub source: Option<TvShowSourceWrapper>,
#[schema(description = "Offset")]
pub offset: Option<StackString>,
#[schema(description = "Limit")]
pub limit: Option<StackString>,
}

#[cfg(test)]
mod test {
use rweb_helper::derive_rweb_test;
Expand Down
Loading

0 comments on commit c550201

Please sign in to comment.