macro_rules! delete {
($url:literal, &mut $client:ident) => { ... };
($url:expr, &mut $client:ident) => { ... };
}Expand description
Make a DELETE request to the specified URL.
The delete! macro is used to make a DELETE request to the specified URL
Its first argument is a string literal or a variable.
To help understand the macro arguments, here is an example:
delete!(url, &mut client)
§Arguments
url- The URL to make the DELETE request to.client- The client variable to use for the request.
Please note url can be a string literal or a variable.
§Example
ⓘ
let mut client = Deboa::new();
let response = delete!("https://jsonplaceholder.typicode.com/posts/1", &mut client);
assert_eq!(response.id, 1);