Struct Figure
pub struct Figure {
pub id: String,
pub label: Option<String>,
pub caption: 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: StringFigure caption. From <caption>/<p>.
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§
§impl<'de> Deserialize<'de> for Figure
impl<'de> Deserialize<'de> for Figure
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Figure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Figure, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Figure
impl Serialize for Figure
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more