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