Add Support for Parsing Lists (#654)

* made numbering structs public

* added numbering struct

* made numberformat public
main
Mridul Mahesh 2023-10-10 14:58:54 +08:00 committed by GitHub
parent 0164501088
commit 16aa7cb3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -6,10 +6,10 @@ use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct AbstractNumbering {
id: usize,
style_link: Option<String>,
num_style_link: Option<String>,
levels: Vec<Level>,
pub id: usize,
pub style_link: Option<String>,
pub num_style_link: Option<String>,
pub levels: Vec<Level>,
}
impl AbstractNumbering {

View File

@ -5,7 +5,7 @@ use crate::xml_builder::*;
#[derive(Debug, Clone, PartialEq)]
pub struct NumberFormat {
val: String,
pub val: String,
}
impl NumberFormat {

View File

@ -7,8 +7,8 @@ use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Numbering {
id: usize,
abstract_num_id: usize,
pub id: usize,
pub abstract_num_id: usize,
pub level_overrides: Vec<LevelOverride>,
}

View File

@ -8,8 +8,8 @@ use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Numberings {
abstract_nums: Vec<AbstractNumbering>,
numberings: Vec<Numbering>,
pub abstract_nums: Vec<AbstractNumbering>,
pub numberings: Vec<Numbering>,
}
impl Numberings {