nats-io / nats.rs

Rust client for NATS, the cloud native messaging system.
Apache License 2.0
1.04k stars 165 forks source link

Fix serde Stream roundtrip #1294

Closed Jarema closed 1 month ago

Jarema commented 2 months ago

If someone does a serde serialize/deserialize roundtrip with jetstream::stream::Stream, it will result in error, as then ConsumerLimits will be null. This should not happen in real-world scenarios, as server does not send nulls for those values, however its good to protect against those scenarios in case Go/nats-server changes its behaviour as some point in time.

closes #1293

Signed-off-by: Tomasz Pietrek tomasz@nats.io