DefaultTokens trait for Auth implemented
use crate::types::addon::{DescriptorFlags, Manifest, ManifestPreview};
use crate::types::library::{LibraryItemBehaviorHints, LibraryItemState};
-use crate::types::profile::{AuthKey, GDPRConsent, User};
+use crate::types::profile::{Auth, AuthKey, GDPRConsent, User};
use crate::types::resource::{MetaItemBehaviorHints, PosterShape};
use serde_test::Token;
@@ -224,3 +224,22 @@ impl DefaultTokens for User {
.concat()
}
}
+
+impl DefaultTokens for Auth {
+ fn default_token() -> Vec<Token> {
+ [
+ vec![
+ Token::Struct {
+ name: "Auth",
+ len: 2,
+ },
+ Token::Str("key"),
+ ],
+ AuthKey::default_token(),
+ vec![Token::Str("user")],
+ User::default_token(),
+ vec![Token::StructEnd],
+ ]
+ .concat()
+ }
+}
