litellm/litellm-rust/crates/traces/src/response.rs
nate-berri e843cb7aca
fix(rust): path-qualify attribute aliases so rust-analyzer resolves them (#45416)
rust-analyzer cannot resolve the bare alias names emitted by
macro_rules_attribute::apply, so every aliased type was invisible to it
(no go-to-definition or find-references). Referencing the aliases through
crate:: resolves them via the re-export that attribute_alias! generates.

Co-authored-by: Nate Armstrong <narmstrong@Nates-MBP.localdomain>
2026-10-08 11:51:58 -07:00

10 lines
352 B
Rust

#[macro_rules_attribute::apply(crate::response_type)]
#[derive(Clone, Debug)]
#[serde(deny_unknown_fields)]
pub struct TraceSQLResponse {
#[cfg_attr(
feature = "schema",
schemars(extend("x-python-normalized" = {"type": "tuple[Mapping[str, JsonValue], ...]"}))
)]
pub data: Vec<serde_json::Map<String, serde_json::Value>>,
}