pub enum ClickStackNumberTileColorConditionResponse {
ClickStackNumericColorCondition(ClickStackNumericColorConditionResponse),
ClickStackBetweenColorCondition(ClickStackBetweenColorConditionResponse),
ClickStackEqualityColorCondition(ClickStackEqualityColorConditionResponse),
Unknown(Value),
}Expand description
ClickStackNumberTileColorCondition - one of multiple variants, in response position.
Response variant of ClickStackNumberTileColorCondition: 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 operator field, exactly as the request union is: 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. A operator this crate does not know, or a payload that
does not fit the variant its operator selects, lands in Unknown with the
raw JSON intact.
Deliberately has no Default: every arm’s default would serialize to {},
which carries no operator and so would not deserialize back to the same
variant. Build a ClickStackNumberTileColorCondition instead when writing.
Variants§
ClickStackNumericColorCondition(ClickStackNumericColorConditionResponse)
ClickStackBetweenColorCondition(ClickStackBetweenColorConditionResponse)
ClickStackEqualityColorCondition(ClickStackEqualityColorConditionResponse)
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 ClickStackNumberTileColorConditionResponse
impl Clone for ClickStackNumberTileColorConditionResponse
Source§fn clone(&self) -> ClickStackNumberTileColorConditionResponse
fn clone(&self) -> ClickStackNumberTileColorConditionResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more