use super::Element;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, PartialEq, Eq, Serialize)]
pub struct Figure {
    pub element: Box<Element>,
    #[serde(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub caption: Option<Box<Element>>,
}
