pub struct Figure {
pub id: String,
pub label: Option<String>,
pub caption: Option<String>,
pub alt_text: Option<String>,
pub fig_type: Option<String>,
pub graphic_href: Option<String>,
}Expand description
Figure.
Maps to JATS <fig>. The graphic_href field contains the domain-level
reference to the graphic file (from <graphic xlink:href="...">).
Actual file extraction paths and sizes belong to the client layer’s
ExtractedFigure type, not here.
Fields§
§id: StringFigure ID. From <fig id="...">.
label: Option<String>Figure label (e.g., “Figure 1”). From <label>.
caption: Option<String>Figure caption. From <caption>/<p>. None when the XML element is
absent or could not be parsed.
alt_text: Option<String>Alt text. From <alt-text>.
fig_type: Option<String>Figure type (e.g., “figure”, “scheme”, “chart”). From <fig fig-type="...">.
graphic_href: Option<String>Graphic href from the XML. From <graphic xlink:href="...">.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Figure
impl<'de> Deserialize<'de> for Figure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Figure
Auto Trait Implementations§
impl Freeze for Figure
impl RefUnwindSafe for Figure
impl Send for Figure
impl Sync for Figure
impl Unpin for Figure
impl UnwindSafe for Figure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more