diff options
| author | mat <git@matdoes.dev> | 2025-10-06 23:04:30 -0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-06 23:04:30 -0300 |
| commit | 6585e552d47387746f45ac4bb0f0a32d6219aa91 (patch) | |
| tree | 11a07c033809460cb3cef02e66ec60bdee56bafc | |
| parent | 1cf6d92f1a8be954f6885704c31f317b99b05972 (diff) | |
| download | azalea-drasl-6585e552d47387746f45ac4bb0f0a32d6219aa91.tar.xz | |
allow skipping serialization of PartialProfile::properties
| -rw-r--r-- | azalea-inventory/src/components/profile.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-inventory/src/components/profile.rs b/azalea-inventory/src/components/profile.rs index 9966bc8f..499d42bb 100644 --- a/azalea-inventory/src/components/profile.rs +++ b/azalea-inventory/src/components/profile.rs @@ -35,6 +35,7 @@ pub struct PartialProfile { #[serde(skip_serializing_if = "is_default")] pub id: Option<Uuid>, #[serde(serialize_with = "serialize_properties")] + #[serde(skip_serializing_if = "is_default")] pub properties: GameProfileProperties, } fn serialize_properties<S: Serializer>( |
