NLnetLabs / kmip-ttlv

Handling of KMIP TTLV encoded data in Rust.
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add support for optional TTLV items. #6

Closed ximon18 closed 3 years ago

ximon18 commented 3 years ago

A krill-kmip-protocol test is failing due to lack of support in this crate for serializing optional TTLV items:

thread 'tests::kmip_10_query_use_case_12_1::query_operations_objects_max_response_size_256' panicked at
'called `Result::unwrap()` on an `Err` value: UnsupportedType("Some")', 
src/tests/kmip_10_query_use_case_12_1.rs:26:74

Implement fn serialize_none() and fn serialize_some() in the Serde serializer.