exemplify_lib/layers/domain/entities/chunk.rs
1/// This is a raw example chunk - what we extract from the individual source files
2#[derive(Default, Clone)]
3pub struct Chunk {
4 pub example_name: String,
5 pub content: Vec<ChunkLine>,
6 pub part_number: Option<u32>,
7 pub indentation: Option<u32>,
8 pub source_name: String,
9 pub start_line: usize,
10 pub title: Option<String>,
11 pub language: Option<String>,
12 pub id: Option<String>
13}
14
15#[derive(Default, Clone)]
16pub struct ChunkLine {
17 pub value: String,
18 pub line_number: usize
19}