diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-05 13:12:33 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-05 13:12:33 +0300 |
| commit | f057f39422ccf932630fe52038a91ab472f66b3d (patch) | |
| tree | b6c451f2c95e625bd7b702eb7932d027b8d63c1f /src/models.rs | |
| parent | a31db5a182c7d45ca6720a99c409b5c35fad69bb (diff) | |
| download | oreilly-epub-f057f39422ccf932630fe52038a91ab472f66b3d.tar.gz oreilly-epub-f057f39422ccf932630fe52038a91ab472f66b3d.zip | |
Initiate full_path as RelativePathBuf
This is better than having it as string then converting it to path
whenever we want to use it. It also ensures better interoperability
between operating systems (though it would probably worked fine
beforehand, but better be safe for the future).
Diffstat (limited to 'src/models.rs')
| -rw-r--r-- | src/models.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs index 4da288e..a3183e6 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,3 +1,4 @@ +use relative_path::RelativePathBuf; use serde::Deserialize; /// Generic Model for paginated API. @@ -30,7 +31,7 @@ pub struct Chapter { pub struct FileEntry { pub ourn: String, pub url: String, - pub full_path: String, + pub full_path: RelativePathBuf, pub media_type: String, pub filename: String, pub filename_ext: String, |
