summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index e27836e..e10a48e 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -186,6 +186,7 @@ impl Serialize for FileRequest {
}
}
+/// object for per-item hash response
#[derive(Debug, Deserialize)]
pub struct HashResponse {
pub hash: String,
@@ -195,6 +196,7 @@ pub struct HashResponse {
pub pixel_hash: Option<String>,
}
+/// url status in hydrus database
#[derive(Debug, Deserialize_repr)]
#[repr(u8)]
pub enum UrlStatus {
@@ -203,6 +205,7 @@ pub enum UrlStatus {
PreviouslyDeleted,
}
+/// per-url response object
#[derive(Debug, Deserialize)]
pub struct UrlFileStatus {
pub status: UrlStatus,
@@ -210,6 +213,7 @@ pub struct UrlFileStatus {
pub note: String,
}
+/// hydrus response after querying for files url status
#[derive(Debug, Deserialize)]
pub struct FilesUrlResponse {
pub normalised_url: String,