1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use crate::framework::endpoint::{Endpoint, Method}; /// Remove a Namespace /// Deletes the namespace corresponding to the given ID. /// https://api.cloudflare.com/#workers-kv-namespace-remove-a-namespace pub struct RemoveNamespace<'a> { pub account_identifier: &'a str, pub namespace_identifier: &'a str, } impl<'a> Endpoint for RemoveNamespace<'a> { fn method(&self) -> Method { Method::Delete } fn path(&self) -> String { format!( "accounts/{}/storage/kv/namespaces/{}", self.account_identifier, self.namespace_identifier ) } }