mailjet_api_wrapper/traits/url_encoded_request.rs
1// This file is part of rust-mailjet <https://github.com/nevermille/rust-mailjet>
2// Copyright (C) 2023 Camille Nevermind
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU Lesser General Public
6// License as published by the Free Software Foundation; either
7// version 3 of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// Lesser General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public License
15// along with this program; if not, write to the Free Software Foundation,
16// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18use url_builder::URLBuilder;
19
20/// Requests that need to be encoded in URLs
21pub trait UrlEncodedRequest {
22 /// Adds parameter to a URL builder
23 ///
24 /// # Parameters
25 ///
26 /// * `url_builder`: The URL builder
27 fn add_parameters_to_url(&self, url_builder: &mut URLBuilder);
28}