pub enum ClickStackAlertChannelResponse {
ClickStackAlertChannelEmail(ClickStackAlertChannelEmailResponse),
ClickStackAlertChannelWebhook(ClickStackAlertChannelWebhookResponse),
Unknown(Value),
}Expand description
ClickStackAlertChannel - one of multiple variants, in response position.
Response variant of ClickStackAlertChannel: 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 ClickStackAlertChannel instead when writing.
Variants§
ClickStackAlertChannelEmail(ClickStackAlertChannelEmailResponse)
ClickStackAlertChannelWebhook(ClickStackAlertChannelWebhookResponse)
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 ClickStackAlertChannelResponse
impl Clone for ClickStackAlertChannelResponse
Source§fn clone(&self) -> ClickStackAlertChannelResponse
fn clone(&self) -> ClickStackAlertChannelResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more