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

unleash-types

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

31 releases (13 breaking)

0.14.0 Oct 18, 2024
0.13.0 Jul 19, 2024
0.12.0 Apr 25, 2024
0.11.0 Jan 23, 2024
0.2.1 Nov 24, 2022

#324 in Web programming

Download history 7/week @ 2024-08-18 13/week @ 2024-08-25 72/week @ 2024-09-01 21/week @ 2024-09-08 140/week @ 2024-09-15 75/week @ 2024-09-22 47/week @ 2024-09-29 28/week @ 2024-10-06 195/week @ 2024-10-13 93/week @ 2024-10-20 57/week @ 2024-10-27 23/week @ 2024-11-03 24/week @ 2024-11-10 31/week @ 2024-11-17 84/week @ 2024-11-24 80/week @ 2024-12-01

220 downloads per month
Used in 4 crates

MIT license

61KB
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
~67K SLoC