Skip to content

Commit

Permalink
update SoftObject to include added string
Browse files Browse the repository at this point in the history
  • Loading branch information
c01dc0ffee authored and trumank committed May 13, 2024
1 parent 0fa0765 commit 9b98872
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,7 @@ pub enum Property {
id: Option<uuid::Uuid>,
value: String,
value2: String,
value3: String,
},
Name {
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2191,6 +2192,7 @@ impl Property {
id: read_optional_uuid(reader)?,
value: read_string(reader)?,
value2: read_string(reader)?,
value3: read_string(reader)?,
}),
PropertyType::ObjectProperty => Ok(Property::Object {
id: read_optional_uuid(reader)?,
Expand Down Expand Up @@ -2407,11 +2409,12 @@ impl Property {
writer.write_all(&buf)?;
size
}
Property::SoftObject { id, value, value2 } => {
Property::SoftObject { id, value, value2, value3 } => {
write_optional_uuid(writer, *id)?;
let mut buf = vec![];
writer.stream(&mut buf, |writer| write_string(writer, value))?;
writer.stream(&mut buf, |writer| write_string(writer, value2))?;
writer.stream(&mut buf, |writer| write_string(writer, value3))?;
let size = buf.len();
writer.write_all(&buf)?;
size
Expand Down

0 comments on commit 9b98872

Please sign in to comment.