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