mangadex_api/v5/settings/template/
version.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pub mod get;
use uuid::Uuid;

use get::GetSettingsTemplateByVersionIdBuilder;

use crate::HttpClientRef;

#[derive(Debug)]
pub struct SettingsTemplateVersionBuilder {
    #[allow(unused)]
    http_client: HttpClientRef,
    version: Uuid,
}

impl SettingsTemplateVersionBuilder {
    #[doc(hidden)]
    pub(crate) fn new(http_client: HttpClientRef, version: Uuid) -> Self {
        Self {
            http_client,
            version,
        }
    }
    pub fn get(&self) -> GetSettingsTemplateByVersionIdBuilder {
        GetSettingsTemplateByVersionIdBuilder::default()
            .version(self.version)
            .http_client(self.http_client.clone())
    }
}