diff --git a/src/cfdp/pdu/metadata.rs b/src/cfdp/pdu/metadata.rs index fbdb982..f8e4be7 100644 --- a/src/cfdp/pdu/metadata.rs +++ b/src/cfdp/pdu/metadata.rs @@ -14,9 +14,9 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct MetadataGenericParams { - closure_requested: bool, - checksum_type: ChecksumType, - file_size: u64, + pub closure_requested: bool, + pub checksum_type: ChecksumType, + pub file_size: u64, } impl MetadataGenericParams { @@ -145,6 +145,10 @@ impl<'src_name, 'dest_name, 'opts> MetadataPdu<'src_name, 'dest_name, 'opts> { pdu } + pub fn metadata_params(&self) -> &MetadataGenericParams { + &self.metadata_params + } + pub fn src_file_name(&self) -> Lv<'src_name> { self.src_file_name }