aboutsummaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs
index a3183e6..6035ce1 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -1,5 +1,6 @@
use relative_path::RelativePathBuf;
use serde::Deserialize;
+use url::Url;
/// Generic Model for paginated API.
#[derive(Debug, serde::Deserialize)]
@@ -30,7 +31,7 @@ pub struct Chapter {
#[derive(Debug, Deserialize)]
pub struct FileEntry {
pub ourn: String,
- pub url: String,
+ pub url: Url,
pub full_path: RelativePathBuf,
pub media_type: String,
pub filename: String,