use crate::volcengine::error::error;
use crate::volcengine::request::request::RequestVolcengine;
use crate::volcengine::request::{request, response};
use std::collections::HashMap;
use volcengine_sdk_protobuf::protobuf::ecs_instance;
impl request::ApiRequest for ecs_instance::StopInstancesReq {
fn to_hashmap(&self) -> HashMap<String, String> {
request::Request::format_request_to_hashmap(self)
}
fn to_body(&self) -> Vec<u8> {
let result = Vec::new();
result
}
}
impl response::ApiResponse for ecs_instance::StopInstancesResp {
async fn to_struct(&mut self, http_response: reqwest::Response) -> Result<(), error::Error> {
let parsed_response: volcengine_sdk_protobuf::protobuf::ecs_instance::StopInstancesResp =
http_response
.json()
.await
.map_err(|e| error::Error::ErrParseResponse(e))?;
*self = parsed_response;
Ok(())
}
}