[][src]Module rsreddit::util

Functions

chomp_http_prefix

Checks if first 7 chars are equal to "http://" and removes them if they exist

convert_map_to_string

convert map to query_string, for example: convert {"redirect_uri":"my_uri", "state":"my-state" "scope":"test-scope"} to redirect_uri=my_uri&state=my-state&scope=test-scope Since hashmap is not sorted, so the order of key-value-pairs may differ from times

convert_scope_vec_to_string

Converts vector of objects with ToString Trait to one string with one space as spacer

generate_random_string

Generates a random string of length from Alphanumeric values

insert_json_classname

Insert classname to JSON object represented as a String, since serde cannot deserialize such an object yet afaik

open_browser