Expand description

contains two main elements that are used in operations of evds_basic and evds_currency.

ReturnFormat specifies format of the database response and ApiKey is created to supply valid key to the functions making request operations. Evds becomes connection between the functions and both ReturnFormat and ApiKey variables.

Usage

The each element is explained and exampled in their definition parts. This usage illustrates combined version of common elements on Evds structure to be used in related functions.

    use tcmb_evds::common::*;


    // Please use a valid key here.
    let api_key = ApiKey::from("users_valid_key".to_string())?;

    let return_format = ReturnFormat::Json;

    let evds = Evds::from(api_key, return_format);

Structs

is the container of the api key validated.

is composed of created ApiKey and ReturnFormat variables.

Enums

provides users an option menu to choose one of the return format.