diff options
| author | jakka <jakka@jakka.su> | 2025-10-01 14:30:07 +0300 |
|---|---|---|
| committer | jakka <jakka@jakka.su> | 2025-10-01 14:30:07 +0300 |
| commit | 38ea76f490a94b5734d4b39ca0c0be2e6ab6f90a (patch) | |
| tree | 2fced4196723cba4e9a6dcd0d8b02af49c293c6e /src/types.rs | |
| parent | 8680fbc0fab62e47a7736e5194badba84411ea7f (diff) | |
implemented existing functions for sync client
Diffstat (limited to 'src/types.rs')
| -rw-r--r-- | src/types.rs | 4 |
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, |
