diff --git a/src/v1.rs b/src/v1.rs index e78ac66..3386644 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -284,11 +284,12 @@ impl std::error::Error for Error{} #[binrw] #[brw(little)] -#[derive(Debug)] +#[derive(Debug,Clone,Copy)] pub struct BlockId(u32); #[binrw] #[brw(little)] +#[derive(Debug,Clone,Copy)] pub struct TimedBlockId{ pub time:f64, pub block_id:BlockId, @@ -296,6 +297,7 @@ pub struct TimedBlockId{ #[binrw] #[brw(little)] +#[derive(Debug)] pub struct FileHeader{ #[brw(magic=b"qbot")] pub file_version:u32, @@ -310,7 +312,7 @@ pub struct FileHeader{ } pub struct File{ - header:FileHeader, + pub header:FileHeader, //reference to the data data:R, }