use surf::http::Method;
use crate::framework::endpoint::Endpoint;
use super::Tunnel;
#[derive(Debug)]
pub struct DeleteTunnel<'a> {
pub account_identifier: &'a str,
pub tunnel_id: &'a str,
}
impl<'a> Endpoint<Tunnel> for DeleteTunnel<'a> {
fn method(&self) -> Method {
Method::Delete
}
fn path(&self) -> String {
format!(
"accounts/{}/tunnels/{}",
self.account_identifier, self.tunnel_id
)
}
}