From 681271a53c47095d58a4f893ab0c2f2c65a95bd0 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 1 Dec 2023 16:02:37 +0100 Subject: [PATCH] lets try to make serde work --- src/cfdp/pdu/metadata.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfdp/pdu/metadata.rs b/src/cfdp/pdu/metadata.rs index 61b3acb..6818d59 100644 --- a/src/cfdp/pdu/metadata.rs +++ b/src/cfdp/pdu/metadata.rs @@ -243,6 +243,7 @@ impl<'opts> Iterator for OptionsIter<'opts> { /// This abstraction exposes a specialized API for reading a metadata PDU with minimal copying /// involved. #[derive(Debug)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct MetadataPduReader<'buf> { pdu_header: PduHeader, metadata_params: MetadataGenericParams,