use surf::http::Method;
use crate::endpoints::load_balancing::Pool;
use crate::framework::endpoint::Endpoint;
#[derive(Debug)]
pub struct PoolDetails<'a> {
pub account_identifier: &'a str,
pub identifier: &'a str,
}
impl<'a> Endpoint<Pool, (), ()> for PoolDetails<'a> {
fn method(&self) -> Method {
Method::Get
}
fn path(&self) -> String {
format!(
"accounts/{}/load_balancers/pools/{}",
self.account_identifier, self.identifier
)
}
}