Add documentation.
This commit is contained in:
parent
581a79fe6b
commit
e5312509b9
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue