#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

35 releases (14 breaking)

new 0.15.3 Jan 7, 2025
0.14.0 Oct 18, 2024
0.13.0 Jul 19, 2024
0.11.0 Jan 23, 2024
0.2.1 Nov 24, 2022

#314 in Web programming

Download history 119/week @ 2024-09-20 39/week @ 2024-09-27 42/week @ 2024-10-04 72/week @ 2024-10-11 208/week @ 2024-10-18 55/week @ 2024-10-25 31/week @ 2024-11-01 15/week @ 2024-11-08 34/week @ 2024-11-15 82/week @ 2024-11-22 56/week @ 2024-11-29 135/week @ 2024-12-06 76/week @ 2024-12-13 16/week @ 2024-12-20 6/week @ 2024-12-27 638/week @ 2025-01-03

796 downloads per month
Used in 4 crates

MIT license

65KB
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
~66K SLoC