Module responses

Module responses 

Source
Expand description

Tiny response shapes ({ "created": true }, { "id": "..." }) so the OpenAPI spec carries real types instead of serde_json::Value. Lightweight response shapes for handlers that return ad-hoc JSON maps such as { "created": true } or { "id": "..." }.

Defined here so the OpenAPI spec carries a real type instead of the catch-all serde_json::Value. Each struct matches the literal JSON the handler emits today via serde_json::json!({ ... }).

Structs§

AddNodeResponse
Response for POST /api/v1/nodes — echoes the registered xname.
CompletedResponse
Response for endpoints that simply confirm a backup / restore / long-running migrate operation finished. Emitted by POST /api/v1/migrate/backup and POST /api/v1/migrate/restore.
CreateSessionResponse
Response for POST /api/v1/sessions — names of the created CFS session and its underlying configuration.
CreatedResponse
Response for endpoints that simply confirm a write happened.
EphemeralEnvResponse
Response for POST /api/v1/ephemeral-env — the freshly provisioned ephemeral host.
MigrateNodesPairResult
One migration pair’s result; mirrors manta_server::service::migrate::NodeMigrationResult on the wire. Embedded inside MigrateNodesResponse without importing the server-side type into the shared crate.
MigrateNodesResponse
Response for POST /api/v1/migrate/nodes — moved xnames plus a per-(target,parent) result list. Dry-run uses the same shape so the CLI consumes one type regardless of mode.