mangadex_api/v5/captcha/solve.rs
1pub mod post;
2
3use crate::HttpClientRef;
4use post::SolveCaptchaBuilder;
5
6#[derive(Clone, Debug)]
7pub struct SolveEndpoint {
8 http_client: HttpClientRef,
9}
10
11impl SolveEndpoint {
12 #[doc(hidden)]
13 pub fn new(http_client: HttpClientRef) -> Self {
14 Self { http_client }
15 }
16 pub fn post(&self) -> SolveCaptchaBuilder {
17 SolveCaptchaBuilder::default().http_client(self.http_client.clone())
18 }
19}