Module types

Module types 

Source
Expand description

Wire types shared between the manta-cli and manta-server binaries — the CLI↔server API contract.

Everything in this module is “wire-shaped” data: request/response bodies, query-string structs, and CLI-built parameter structs (api/), response DTOs re-exported from upstream crates (dto), auth wire shapes (auth), plus pure helpers that operate on those types (cluster_status). There is no business logic and no I/O; this module depends only on serde, utoipa, and manta-backend-dispatcher type re-exports. Anything that performs work — config loading, tracing init, error conversion — lives in super::common.

Modules§

api
Single-namespace API types shared between manta-cli (Serialize side) and manta-server (Deserialize side).
auth
Wire types for the POST /api/v1/auth/{token,validate} endpoints.
cluster_status
Pure helpers for summarizing node and cluster status.
dto
Wire response types shared by both binaries.