use crate::endpoints::load_balancing::Pool;
use crate::framework::endpoint::{EndpointSpec, Method};
use crate::framework::response::ApiSuccess;
#[derive(Debug)]
pub struct PoolDetails<'a> {
pub account_identifier: &'a str,
pub identifier: &'a str,
}
impl EndpointSpec for PoolDetails<'_> {
type JsonResponse = Pool;
type ResponseType = ApiSuccess<Self::JsonResponse>;
fn method(&self) -> Method {
Method::GET
}
fn path(&self) -> String {
format!(
"accounts/{}/load_balancers/pools/{}",
self.account_identifier, self.identifier
)
}
}