#unleash #api-client #open-api #type #structs #api-response #metrics

unleash-types

API types for Unleash (https://github.com/Unleash/unleash) client features API response

29 releases

0.12.0 Apr 25, 2024
0.11.0 Jan 23, 2024
0.10.6 Nov 30, 2023
0.10.4 Jul 14, 2023
0.2.1 Nov 24, 2022

#369 in Web programming

Download history 15/week @ 2024-01-24 7/week @ 2024-02-07 115/week @ 2024-02-14 35/week @ 2024-02-21 80/week @ 2024-02-28 13/week @ 2024-03-06 64/week @ 2024-03-13 15/week @ 2024-03-20 13/week @ 2024-03-27 28/week @ 2024-04-03 3/week @ 2024-04-10 91/week @ 2024-04-17 173/week @ 2024-04-24 37/week @ 2024-05-01 17/week @ 2024-05-08

320 downloads per month
Used in 4 crates

MIT license

53KB
1.5K SLoC

Coverage Status

Unleash types

This project represents Unleash OpenAPI types as Rust structs.

Usage

Add unleash-types to your Cargo file.

Client features

  • client_features::ClientFeatures struct represents the data as it comes back from an Unleash server from the /api/client/features endpoint.

Client metrics

  • client_metrics::ClientApplication struct represents the data expected by an Unleash server in a POST to the /api/client/register endpoint
  • client_metrics::ClientMetrics struct represents the data expected by an Unleash server in a POST to the /api/client/metrics endpoint

Frontend types

  • frontend::FrontendResults struct represents the data expected by a proxy client GET call to the /api/proxy | /api/frontend endpoints.

Dependencies

~2.1–3.5MB
~65K SLoC