pub struct Section {
pub kind: SectionKind,
pub title: Option<String>,
pub numbering: Numbering,
pub epigraph: Option<Epigraph>,
pub style: Map<String, Value>,
pub blocks: Vec<Block>,
}Fields§
§kind: SectionKind§title: Option<String>Heading as displayed, without the “Chapter N” label (that is
generated by the theme from numbering).
numbering: Numbering§epigraph: Option<Epigraph>§style: Map<String, Value>Design choices for this section alone (ADR-0014 § 3, the narrowest
scope). Reserved in format version 2 and unused until M5-36; values
are stored as given and checked by setzer-typeset, not here.
blocks: Vec<Block>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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