[][src]Macro yukikaze::declare_global_client

macro_rules! declare_global_client {
    () => { ... };
    ($config:ty) => { ... };
}

Declares global client for use.

If no argument is specified, uses DefaultCfg Otherwise you must provide accessible type of unit struct that implements Config

Creates following:

  • GLOBAL_CLIENT which is initialized using lazy_static
  • Request which uses GLOBAL_CLIENT and wraps yukikaze::client::Request
  • Creates and defines trait GlobalRequest for generated Request.

See example of generated

See usage