pub struct SectionOpts {
pub optional: bool,
pub content: Option<SectionContent>,
pub children: Option<SectionSeq>,
pub rules: Vec<Box<dyn Rule>>,
pub anchor: Option<String>,
pub repeatable: bool,
pub min: Option<usize>,
pub max: Option<usize>,
pub description: Option<String>,
}Expand description
Per-section options — the TS SectionOpts.
Fields§
§optional: boolwhether the section may be absent
content: Option<SectionContent>what the section’s blocks must be
children: Option<SectionSeq>nested subsequence (recursion)
rules: Vec<Box<dyn Rule>>node-local named rules
anchor: Option<String>require a ^block-id, e.g. "summary"
repeatable: boolrepeatable slot: the declared heading may recur as peers at one level
min: Option<usize>minimum occurrence count for a repeatable slot (below → structure/repeat-count)
max: Option<usize>maximum occurrence count for a repeatable slot (above → structure/repeat-count)
description: Option<String>the node’s description:, carried for Finding.hint
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SectionOpts
impl !Send for SectionOpts
impl !Sync for SectionOpts
impl !UnwindSafe for SectionOpts
impl Freeze for SectionOpts
impl Unpin for SectionOpts
impl UnsafeUnpin for SectionOpts
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