pub enum ClickStackOnClickTargetResponse {
ClickStackOnClickTargetIdVariant(ClickStackOnClickTargetIdVariantResponse),
ClickStackOnClickTargetTemplateVariant(ClickStackOnClickTargetTemplateVariantResponse),
Unknown(Value),
}Expand description
ClickStackOnClickTarget - one of multiple variants, in response position.
Response variant of ClickStackOnClickTarget: 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 mode 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 mode this crate does not know, or a payload that
does not fit the variant its mode selects, lands in Unknown with the
raw JSON intact.
Deliberately has no Default: every arm’s default would serialize to {},
which carries no mode and so would not deserialize back to the same
variant. Build a ClickStackOnClickTarget instead when writing.
Variants§
ClickStackOnClickTargetIdVariant(ClickStackOnClickTargetIdVariantResponse)
ClickStackOnClickTargetTemplateVariant(ClickStackOnClickTargetTemplateVariantResponse)
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 ClickStackOnClickTargetResponse
impl Clone for ClickStackOnClickTargetResponse
Source§fn clone(&self) -> ClickStackOnClickTargetResponse
fn clone(&self) -> ClickStackOnClickTargetResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more