1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! The universal chunk type returned by every format.
//!
//! Mirrors the `{content, content_type, metadata}` schema the Python engine
//! exposed, but as a native Rust struct. `metadata` stays a `serde_json::Value`
//! — exactly how every format already stores it internally — so nothing is lost
//! and downstream consumers can `serde` it into their own shapes.
use ;
use Value;
/// One chunk of a document — the universal product type every format returns.
///
/// Serialises to the same `{content, content_type, metadata}` JSON shape as the
/// `py-chunks` and `js-chunks` bindings (they are bindings over this struct).
/// One image extracted from a document: `(file name, raw bytes)`.
///
/// The name is the engine-assigned one (see `image_naming`) and is what appears
/// in the owning chunk's `image_name` metadata, so callers can join the two.
pub type ExtractedImage = ;
/// Every image extracted from one document, in document order.
pub type ExtractedImages = ;
/// What the `*_with_images` chunkers return: the chunks, plus the images
/// extracted alongside them.
pub type ChunksWithImages = ;
/// What the `to_markdown_with_images` renderers return: the rendered Markdown,
/// plus the images referenced from it.
pub type MarkdownWithImages = ;