Skip to main content

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 parameter structs (params/), response DTOs (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§

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.
params
Request parameter structs passed from the CLI to the server.