melvin_ob/http_handler/http_request/
create_backup_get.rs

1use super::create_backup;
2use super::request_common::{HTTPRequestMethod, HTTPRequestType, NoBodyHTTPRequestType};
3
4/// Request type for the /backup endpoint -> GET.
5#[derive(Debug)]
6#[cfg(debug_assertions)]
7pub(crate) struct CreateBackupRequest {}
8
9impl NoBodyHTTPRequestType for CreateBackupRequest {}
10
11impl HTTPRequestType for CreateBackupRequest {
12    /// Type of the expected response.
13    type Response = create_backup::CreateBackupResponse;
14    /// `str` object representing the specific endpoint.
15    fn endpoint(&self) -> &'static str { "/backup" }
16    /// The corresponding HTTP Request Method.
17    fn request_method(&self) -> HTTPRequestMethod { HTTPRequestMethod::Get }
18}