From 7a66473ab9b5a5d468d1e72ff33e3fdbc3a2d84b Mon Sep 17 00:00:00 2001 From: Andrew King Date: Thu, 30 Jan 2025 11:21:08 +0700 Subject: [PATCH] Skip seser on the pass field Skip deser the pass field for camera's that try to sent it in the user list --- crates/core/src/bc/xml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/bc/xml.rs b/crates/core/src/bc/xml.rs index b7cb8ae..87d5bee 100644 --- a/crates/core/src/bc/xml.rs +++ b/crates/core/src/bc/xml.rs @@ -1587,7 +1587,7 @@ pub struct User { #[serde(rename = "userName")] pub user_name: String, /// The password seems to only be included when creating or modifying a user - #[serde(rename = "password", skip_serializing_if = "Option::is_none")] + #[serde(rename = "password", skip_serializing_if = "Option::is_none", skip_deserializing)] pub password: Option, /// The user_id does not seem to have a purpose. It is not included when creating a user. #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]