isbnlib/jsonb/
edition_toc.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Deserialize, Serialize};

use crate::enums::string_or_key_value_block::StringOrKeyValueBlock;

#[derive(
Serialize,
Deserialize,
Debug,
Clone,
PartialEq,
Default
)]
pub struct EditionToC {
    pub level: Option<i32>,
    pub title: Option<String>,
    #[serde(rename(deserialize = "type"))]
    pub value_type: Option<StringOrKeyValueBlock>,
    pub class: Option<String>
}