pub struct NestedStructDegradation {
pub column: String,
pub struct_name: String,
pub fallback_type: &'static str,
pub backend: String,
}Expand description
One nested-aggregate column degrade_unsupported_nested_structs
rewrote to a scalar JSON fallback because backend could not construct
a real struct for it. See GeneratedCode::degraded_nested_structs for
why this is surfaced at all rather than left as an internal rewrite
(GH #147).
Fields§
§column: StringSQL-level name of the rewritten column
(scythe_core::analyzer::AnalyzedColumn::name).
struct_name: StringPascalCase name of the struct that could not be generated – matches
[nested_struct_shape]’s decoded name, not the snake_case
scythe_core::analyzer::NestedStructInfo::name it was cased from.
fallback_type: &'static strThe neutral type the column was rewritten to: "json" or, when the
manifest declares the json_array scalar and the shape was an
array, "json_array".
backend: String[scythe_backend::manifest::BackendManifest::name] of the backend
that declined the struct.
Trait Implementations§
Source§impl Clone for NestedStructDegradation
impl Clone for NestedStructDegradation
Source§fn clone(&self) -> NestedStructDegradation
fn clone(&self) -> NestedStructDegradation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more