args-api
Shared API contract for args — resource types and endpoint definitions used by the args backend, CLI, and frontend.
Published primarily so that
args-clican be installed viacargo install. Most users will not depend on this crate directly.
What's in here
resource/— Serializable response types (UserResource,RepositoryResource,ReviewResource, etc.).endpoint/— Zero-sized types implementing theEndpointtrait, pairing an HTTP method and path with request/response types.- Core traits —
ApiResource,ApiRequest, andEndpoint, plus#[derive(ApiResource)]/#[derive(ApiRequest)]from the companionargs-api-derivecrate.
Example
use GetUser;
use Endpoint;
assert_eq!;
assert_eq!;
License
Licensed under the Apache License, Version 2.0. Copyright © args contributors.