Skip seser on the pass field

Skip deser the pass field for camera's that try to sent it in the user list
This commit is contained in:
Andrew King authored and GitHub committed 2025-01-30 11:21:08 +07:00
1 parent a30f403dc4
commit 7a66473ab9
1 file changed
+1 -1
+1 -1
View File
@@ -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<String>,
/// 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")]