Made Api struct public

This commit is contained in:
Igor Katson 2023-12-02 15:19:05 +00:00
parent 08cd8c8b54
commit e9d4dc4e3a
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
6 changed files with 279 additions and 259 deletions

View file

@ -2,6 +2,7 @@ use anyhow::Context;
use serde::Deserialize;
use crate::{
api::ApiAddTorrentResponse,
http_api::TorrentAddQueryParams,
session::{AddTorrent, AddTorrentOptions},
};
@ -82,7 +83,7 @@ impl HttpApiClient {
&self,
torrent: AddTorrent<'_>,
opts: Option<AddTorrentOptions>,
) -> anyhow::Result<crate::http_api::ApiAddTorrentResponse> {
) -> anyhow::Result<ApiAddTorrentResponse> {
let opts = opts.unwrap_or_default();
let params = TorrentAddQueryParams {
overwrite: Some(opts.overwrite),