diff options
| author | jakka <jakka@jakka.su> | 2025-09-17 23:08:01 +0300 |
|---|---|---|
| committer | jakka <jakka@jakka.su> | 2025-09-17 23:08:01 +0300 |
| commit | 770f10da05c2a85f5b6934c9062fd7548b0c1e5b (patch) | |
| tree | cd17e61ff3f7d9d3fabdb337d1f8fc873102d749 /src/types.rs | |
| parent | 2cea08a292a75abce7130c1d8522de7cb9739cb6 (diff) | |
moved more single-field json objects into reponse object
Diffstat (limited to 'src/types.rs')
| -rw-r--r-- | src/types.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/types.rs b/src/types.rs index 8ea8350..e5e0606 100644 --- a/src/types.rs +++ b/src/types.rs @@ -32,14 +32,6 @@ impl From<reqwest::Error> for HydrusError { } } -#[derive(Deserialize, Debug)] -pub struct HydrusResponse<T> { - #[serde(alias = "service", alias = "services")] - pub body: T, - pub version: u64, - pub hydrus_version: u64, -} - #[derive(PartialEq, Debug, Clone, Serialize_repr, Deserialize_repr)] #[repr(u8)] pub enum HydrusPermissions { @@ -61,16 +53,6 @@ pub enum HydrusPermissions { } #[derive(Deserialize, Debug)] -pub struct AccessKey { - pub access_key: String, -} - -#[derive(Deserialize, Debug)] -pub struct SessionKey { - pub session_key: String, -} - -#[derive(Deserialize, Debug)] pub struct KeyInfo { pub name: String, pub permits_everything: bool, |
