aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
14
akode-rs/protocol/src/response_usage.rs
Normal file
14
akode-rs/protocol/src/response_usage.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
//! Per-response usage metadata reported by the upstream service, without aggregation.
|
||||
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
use ts_rs::TS;
|
||||
|
||||
/// Usage metadata reported for one upstream response.
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq, Eq, TS, JsonSchema)]
|
||||
pub struct ResponseUsageMetadata {
|
||||
pub amount: Option<String>,
|
||||
pub metadata: Option<Value>,
|
||||
}
|
||||
Reference in New Issue
Block a user