From 38ea76f490a94b5734d4b39ca0c0be2e6ab6f90a Mon Sep 17 00:00:00 2001 From: jakka Date: Wed, 1 Oct 2025 14:30:07 +0300 Subject: implemented existing functions for sync client --- src/types.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/types.rs') 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, } +/// 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, -- cgit v1.3.1