pub enum ClickStackSource {
ClickStackLogSource(ClickStackLogSource),
ClickStackTraceSource(ClickStackTraceSource),
ClickStackMetricSource(ClickStackMetricSource),
ClickStackSessionSource(ClickStackSessionSource),
ClickStackPromqlSource(ClickStackPromqlSource),
Unknown(Value),
}Expand description
ClickStackSource - one of multiple variants.
Dispatched on the kind field; see the discriminated_union!
invocation below for the wire values.
Variants§
ClickStackLogSource(ClickStackLogSource)
ClickStackTraceSource(ClickStackTraceSource)
ClickStackMetricSource(ClickStackMetricSource)
ClickStackSessionSource(ClickStackSessionSource)
ClickStackPromqlSource(ClickStackPromqlSource)
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 ClickStackSource
impl Clone for ClickStackSource
Source§fn clone(&self) -> ClickStackSource
fn clone(&self) -> ClickStackSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClickStackSource
impl Debug for ClickStackSource
Source§impl Default for ClickStackSource
impl Default for ClickStackSource
Source§impl<'de> Deserialize<'de> for ClickStackSource
impl<'de> Deserialize<'de> for ClickStackSource
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for ClickStackSource
impl Display for ClickStackSource
Source§impl PartialEq for ClickStackSource
impl PartialEq for ClickStackSource
Source§impl Serialize for ClickStackSource
impl Serialize for ClickStackSource
impl StructuralPartialEq for ClickStackSource
Source§impl TryFrom<ClickStackSourceResponse> for ClickStackSource
impl TryFrom<ClickStackSourceResponse> for ClickStackSource
Source§fn try_from(value: ClickStackSourceResponse) -> Result<Self, Self::Error>
fn try_from(value: ClickStackSourceResponse) -> Result<Self, Self::Error>
Turns a fetched source into a create/update body.
A write replaces the whole source, so every field the schema requires for
the source’s kind has to be present in the response; a missing one is
named rather than invented. Nested objects report their own wire names,
unprefixed — databaseName for a source’s from, say.
An Unknown payload — a kind this crate does not model, or a body that
did not fit the variant its kind selected — converts losslessly: the
request union’s own Unknown arm holds the raw JSON and serializes it
verbatim, so such a source can still be written back.