use surf::http::Method;
use crate::framework::endpoint::Endpoint;
use crate::framework::ApiResultTraits;
#[derive(Debug)]
pub struct DeletePool<'a> {
pub account_identifier: &'a str,
pub identifier: &'a str,
}
impl<'a> Endpoint<Response, (), ()> for DeletePool<'a> {
fn method(&self) -> Method {
Method::Delete
}
fn path(&self) -> String {
format!(
"accounts/{}/load_balancers/pools/{}",
self.account_identifier, self.identifier
)
}
}
#[derive(Deserialize, Clone, Debug)]
pub struct Response {
id: String,
}
impl ApiResultTraits for Response {}