pub struct NumberingDef {
pub id: u32,
pub start: u32,
pub levels: Vec<ParaHead>,
}Expand description
A complete numbering definition.
Maps to HWPX <hh:numbering> inside <hh:numberings>.
Fields§
§id: u32Numbering ID (1-based).
start: u32Starting number offset.
levels: Vec<ParaHead>Level definitions (up to 10).
Implementations§
Source§impl NumberingDef
impl NumberingDef
Sourcepub fn default_outline() -> Self
pub fn default_outline() -> Self
Creates the default 10-level outline numbering (한글 Modern default).
Matches golden fixture tests/fixtures/textbox.hwpx:
- Level 1: DIGIT
^1.checkable=false - Level 2: HANGUL_SYLLABLE
^2.checkable=false - Level 3: DIGIT
^3)checkable=false - Level 4: HANGUL_SYLLABLE
^4)checkable=false - Level 5: DIGIT
(^5)checkable=false - Level 6: HANGUL_SYLLABLE
(^6)checkable=false - Level 7: CIRCLED_DIGIT
^7checkable=true - Level 8: CIRCLED_HANGUL_SYLLABLE
^8checkable=true - Level 9: HANGUL_JAMO `` (empty) checkable=false
- Level 10: ROMAN_SMALL `` (empty) checkable=true
Trait Implementations§
Source§impl Clone for NumberingDef
impl Clone for NumberingDef
Source§fn clone(&self) -> NumberingDef
fn clone(&self) -> NumberingDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberingDef
impl Debug for NumberingDef
Source§impl<'de> Deserialize<'de> for NumberingDef
impl<'de> Deserialize<'de> for NumberingDef
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
Source§impl JsonSchema for NumberingDef
impl JsonSchema for NumberingDef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NumberingDef
impl PartialEq for NumberingDef
Source§impl Serialize for NumberingDef
impl Serialize for NumberingDef
impl StructuralPartialEq for NumberingDef
Auto Trait Implementations§
impl Freeze for NumberingDef
impl RefUnwindSafe for NumberingDef
impl Send for NumberingDef
impl Sync for NumberingDef
impl Unpin for NumberingDef
impl UnwindSafe for NumberingDef
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