athena_rs 3.18.0

Hyper performant polyglot Database driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `/debug/schema` service error contracts.
//!
//! This module centralizes report-loading service failure variants so service
//! orchestration and HTTP error mapping share one focused error contract.

use actix_web::HttpResponse;

use super::debug_snapshot_error::LoggingSchemaSnapshotError;

/// Failures while loading a logging-schema diagnostics report.
pub(super) enum LoggingSchemaDebugReportError {
    /// Logging client resolution or pool access failed.
    ResolveLoggingClient(HttpResponse),
    /// Snapshot fetch failed.
    FetchSnapshot(LoggingSchemaSnapshotError),
}