Crate to_query

Source
Expand description

Structure to HTTP_GET/SQL Query Parameters

Derive Macros§

STQuery
STQuery created some function to quickly convert the struct into HTTP_GET/SQL query parameters; By setting use to_query::STQuery; and tagging #[derive(STQuery)] onto the structure, a new function get_http_query() -> String and get_sql_query() -> String is push into the structure, facilitating the generation of the query parameter string. Obtain a list of strings in the format [‘name=value’], for custom purposes.