diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-05 17:29:02 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-05 17:29:02 +0300 |
| commit | 7ab28d6362b5b2b9b9d1a71a0420e6eeb53d76cd (patch) | |
| tree | 94f39d24579ad417aa40b3bd37d85171188fe088 /src/models.rs | |
| parent | 598ee0199a50d30d06f4a2fa67bed5943c6452b4 (diff) | |
| download | oreilly-epub-7ab28d6362b5b2b9b9d1a71a0420e6eeb53d76cd.tar.gz oreilly-epub-7ab28d6362b5b2b9b9d1a71a0420e6eeb53d76cd.zip | |
Add stylesheets to Chapter model
This allows these stylesheets to be added to the chapter contents later
during zipping.
Diffstat (limited to 'src/models.rs')
| -rw-r--r-- | src/models.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs index 6035ce1..77b3730 100644 --- a/src/models.rs +++ b/src/models.rs @@ -25,6 +25,13 @@ pub struct EpubResponse { pub struct Chapter { pub ourn: String, pub is_skippable: bool, + pub related_assets: ChapRelAssets, +} + +/// Sub-model of Chapter - related_assets. +#[derive(Debug, Deserialize)] +struct ChapRelAssets { + pub stylesheets: Vec<Url>, } /// Model for files API. |
