1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::http::{Escape, BASE_URL};
use reqwest::{Client, RequestBuilder};
#[derive(Clone, PartialEq, serde::Deserialize, serde::Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct DeleteNotificationRequest {
pub bucket: String,
pub notification: String,
}
pub(crate) fn build(client: &Client, req: &DeleteNotificationRequest) -> RequestBuilder {
let url = format!(
"{}/b/{}/notificationConfigs/{}",
BASE_URL,
req.bucket.escape(),
req.notification.escape()
);
client.delete(url)
}