mirror of
https://github.com/alfg/mp4-rust.git
synced 2024-12-22 12:06:33 +00:00
Skip serializing edts if Option::is_none.
This commit is contained in:
parent
dd2eae6eed
commit
a1f7902c6c
1 changed files with 3 additions and 0 deletions
|
@ -7,7 +7,10 @@ use crate::mp4box::{edts::EdtsBox, mdia::MdiaBox, tkhd::TkhdBox};
|
||||||
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
||||||
pub struct TrakBox {
|
pub struct TrakBox {
|
||||||
pub tkhd: TkhdBox,
|
pub tkhd: TkhdBox,
|
||||||
|
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub edts: Option<EdtsBox>,
|
pub edts: Option<EdtsBox>,
|
||||||
|
|
||||||
pub mdia: MdiaBox,
|
pub mdia: MdiaBox,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue