Function build_url_from_struct

Source
pub fn build_url_from_struct<'de, T>(https: bool, ip: &String) -> String
where T: Deserialize<'de>,
Expand description

Builds the url for a request. The fields are automatically extracted from the struct.

§Arguments

  • https - A bool indicating whether the url should be built for a HTTPS request or not.
  • ip - The IP address to query for.

§Returns

A String containing the url for the request.