You've already forked flix
Extend model to support update command
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "flix-tmdb"
|
||||
version = "0.0.4"
|
||||
version = "0.0.5"
|
||||
|
||||
categories = []
|
||||
description = "Clients and models for fetching data from TMDB"
|
||||
|
||||
@@ -5,8 +5,9 @@ use super::{CollectionId, MovieId};
|
||||
pub struct Collection {
|
||||
/// The collection's TMDB ID
|
||||
pub id: CollectionId,
|
||||
/// The collection's name
|
||||
pub name: String,
|
||||
/// The collection's title
|
||||
#[serde(rename = "name")]
|
||||
pub title: String,
|
||||
/// The collection's overview
|
||||
pub overview: String,
|
||||
/// The list of movies that are part of this collection
|
||||
|
||||
@@ -5,8 +5,9 @@ use chrono::NaiveDate;
|
||||
pub struct Episode {
|
||||
/// The episode's number
|
||||
pub episode_number: u32,
|
||||
/// The episode's name
|
||||
pub name: String,
|
||||
/// The episode's title
|
||||
#[serde(rename = "name")]
|
||||
pub title: String,
|
||||
/// The episode's overview
|
||||
pub overview: String,
|
||||
/// The episode's air date
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use core::fmt;
|
||||
use core::hash::{Hash, Hasher};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// The TMDB ID type of a movie genre
|
||||
@@ -81,3 +82,9 @@ impl<T> PartialEq for TmdbId<T> {
|
||||
}
|
||||
|
||||
impl<T> Eq for TmdbId<T> {}
|
||||
|
||||
impl<T> Hash for TmdbId<T> {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.inner.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,9 @@ use super::Episode;
|
||||
pub struct Season {
|
||||
/// The season's number
|
||||
pub season_number: u32,
|
||||
/// The season's name
|
||||
pub name: String,
|
||||
/// The season's title
|
||||
#[serde(rename = "name")]
|
||||
pub title: String,
|
||||
/// The season's overview
|
||||
pub overview: String,
|
||||
/// The season's air date
|
||||
|
||||
@@ -7,8 +7,9 @@ use super::{ShowGenre, ShowId};
|
||||
pub struct Show {
|
||||
/// The show's TMDB ID
|
||||
pub id: ShowId,
|
||||
/// The show's name
|
||||
pub name: String,
|
||||
/// The show's title
|
||||
#[serde(rename = "name")]
|
||||
pub title: String,
|
||||
/// The show's overview
|
||||
pub overview: String,
|
||||
/// The list of genres this show belongs to
|
||||
|
||||
Reference in New Issue
Block a user