DefaultTokens trait for MetaItemBehaviorHints implemented
use crate::types::library::{LibraryItemBehaviorHints, LibraryItemState};
+use crate::types::resource::MetaItemBehaviorHints;
use serde_test::Token;
pub trait DefaultTokens {
@@ -52,3 +53,21 @@ impl DefaultTokens for LibraryItemBehaviorHints {
]
}
}
+
+impl DefaultTokens for MetaItemBehaviorHints {
+ fn default_token() -> Vec<Token> {
+ vec![
+ Token::Struct {
+ name: "MetaItemBehaviorHints",
+ len: 3,
+ },
+ Token::Str("defaultVideoId"),
+ Token::None,
+ Token::Str("featuredVideoId"),
+ Token::None,
+ Token::Str("hasScheduledVideos"),
+ Token::Bool(false),
+ Token::StructEnd,
+ ]
+ }
+}
