From c177ba7a49caf63582719a4086e5032e2c939cfa Mon Sep 17 00:00:00 2001 From: jakka Date: Wed, 1 Oct 2025 00:25:24 +0300 Subject: reconfigured the library, moved async client and trait to their own module. in the future sync and async implementations will be separated --- src/types.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/types.rs') diff --git a/src/types.rs b/src/types.rs index df2c387..7762065 100644 --- a/src/types.rs +++ b/src/types.rs @@ -226,3 +226,24 @@ pub struct HashResponse { #[serde(default)] pub pixel_hash: Option, } + +#[derive(Debug, Deserialize_repr)] +#[repr(u8)] +pub enum UrlStatus { + NotInDatabase = 0, + AlreadyInDatabase = 2, + PreviouslyDeleted, +} + +#[derive(Debug, Deserialize)] +pub struct UrlFileStatus { + pub status: UrlStatus, + pub hash: String, + pub note: String, +} + +#[derive(Debug, Deserialize)] +pub struct FilesUrlResponse { + pub normalised_url: String, + pub url_file_statuses: Vec, +} -- cgit v1.3.1