DefaultTokens trait for SeriesInfo implemented
use crate::types::addon::{DescriptorFlags, Manifest, ManifestPreview};
use crate::types::library::{LibraryItemBehaviorHints, LibraryItemState};
-use crate::types::resource::{MetaItemBehaviorHints, PosterShape};
+use crate::types::resource::{MetaItemBehaviorHints, PosterShape, SeriesInfo};
use serde_test::Token;
pub trait DefaultTokens {
@@ -170,3 +170,14 @@ impl DefaultTokens for DescriptorFlags {
]
}
}
+
+impl DefaultTokens for SeriesInfo {
+ fn default_token() -> Vec<Token> {
+ vec![
+ Token::Str("season"),
+ Token::U32(0),
+ Token::Str("episode"),
+ Token::U32(0),
+ ]
+ }
+}
