mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
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>
10 lines
352 B
Rust
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>>,
|
|
}
|