pub enum ClickStackCategoricalBarChartConfigResponse {
ClickStackCategoricalBarRawSqlChartConfig(ClickStackCategoricalBarRawSqlChartConfigResponse),
ClickStackCategoricalBarBuilderChartConfig(ClickStackCategoricalBarBuilderChartConfigResponse),
Unknown(Value),
}Expand description
ClickStackCategoricalBarChartConfig - one of multiple variants, in response position.
Response variant of ClickStackCategoricalBarChartConfig: each arm is the all-Option
response variant of its request type, so a field the API drops or sends as
null deserializes to None instead of failing.
Dispatched on the configType field exactly as the request union is (absent
or non-string dispatches to the builder variant, unless the payload carries
a raw-SQL-only key): dispatch reads the raw JSON rather than trying each
variant’s shape, so all-Option arms — which would match any object under
untagged matching — cannot misroute a payload, and the unless guard
keeps a raw-SQL payload with a dropped discriminator out of the total
builder arm. A payload that does not fit the variant its discriminator
selects lands in Unknown with the raw JSON intact.
Deliberately has no Default: response values are produced by
deserialization, never constructed; build a ClickStackCategoricalBarChartConfig instead when
writing.
Variants§
ClickStackCategoricalBarRawSqlChartConfig(ClickStackCategoricalBarRawSqlChartConfigResponse)
ClickStackCategoricalBarBuilderChartConfig(ClickStackCategoricalBarBuilderChartConfigResponse)
Unknown(Value)
Catch-all for unknown or newly-added values.
Holds the raw payload as serde_json::Value so it round-trips
losslessly; its Display emits the payload as compact JSON.
Trait Implementations§
Source§impl Clone for ClickStackCategoricalBarChartConfigResponse
impl Clone for ClickStackCategoricalBarChartConfigResponse
Source§fn clone(&self) -> ClickStackCategoricalBarChartConfigResponse
fn clone(&self) -> ClickStackCategoricalBarChartConfigResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more