Zeeshan Ali Khan
Zeeshan Ali Khan
> Implement a `Deserializer` and `Serializer` for `OwnedValue`/`Value` similar to `serde_json` (which uses something like that to implement `from_value`/`to_value`). How would that work for zbus? It just has a generic...
> Since the DBus spec defines a "struct" as an sequence of types without names assigned to the fields, it seems more like a tuple. But I guess DBus was...
In GitLab by @ids1024 on Jan 19, 2022, 01:07 I think some binary serialization formats require the use of a schema specification that may statically define names for fields. But...
In GitLab by @ids1024 on Jan 19, 2022, 01:16 `serde-json` has a `impl for Value` implementation, and a [`serde_json::value::Serializer`](https://docs.serde.rs/serde_json/value/struct.Serializer.html) struct, in addition to [`serde_json::Deserializer`](https://docs.serde.rs/serde_json/struct.Deserializer.html) and [`serde_json::Serializer`](https://docs.serde.rs/serde_json/value/struct.Serializer.html). Having to implement `Deserializer`...
> I think some binary serialization formats require the use of a schema specification that may statically define names for fields. But I guess DBus introspection XML is optional, and...
> `serde-json` has a `impl for Value` implementation, and a `serde_json::value::Serializer` struct, in addition to `serde_json::Deserializer` and `serde_json::Serializer`. Right and hence my question: > How would that work for zbus?...
> Since the serializer and deserializer has access to the signature, they could be change to act accordingly if they receive `a{sv}` signature and told to serialize/deserize a struct. Thought...
Another relevant thing I got reminded was that my first `serde::Serializer` implementation attempt did not involve taking signature as input. The serializer would instead create the signature as it serialized...
In GitLab by @jhartzell42 on Jan 19, 2022, 19:10 This awkward distinction between `Serialize` and `SerializeDict` is a problem in the codebase at my job, as anything marked `SerializeDict` then...
In GitLab by @jhartzell42 on Jan 19, 2022, 19:22 > In a lot of cases I'd agree. I was hoping serde would have a built-in attribute for serializing a named...