1
Fork 0

Add documentation.

This commit is contained in:
Bauke 2022-09-26 11:55:35 +02:00
parent 581a79fe6b
commit e5312509b9
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ impl Generator {
/// Returns all configurable options as a query parameter string. /// Returns all configurable options as a query parameter string.
pub fn query_parameters(&self) -> String { pub fn query_parameters(&self) -> String {
/// Shorthand for [`urlencoding::encode`].
fn encode<D: std::fmt::Display>(data: D) -> String { fn encode<D: std::fmt::Display>(data: D) -> String {
urlencoding::encode(&data.to_string()).into_owned() urlencoding::encode(&data.to_string()).into_owned()
} }