voiceflousion 0.3.1

A crate that provides toolkit for Voiceflow AI bots integrations and pre-built functionality for quick integration with popular messengers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Serialize;
use serde_json::Value;

/// Represents the payload for an action in the Voiceflow API.
///
/// `Payload` can be either a single JSON value or an object containing multiple JSON values.
#[derive(Debug, Serialize)]
#[serde(untagged)]
pub(crate) enum Payload {
    /// A single JSON value.
    Single(Value),

    /// An object containing multiple JSON values.
    Object(Value),
}