pdk-script 1.3.0-alpha.0

PDK Script
Documentation
// Copyright 2023 Salesforce, Inc. All rights reserved.
// use crate::bindings::value::ValueBinding;

/// Represents top-level variables.
pub enum Input<'a> {
    /// Represents the `vars` variable.
    Vars(&'a str),

    /// Represents the `payload` variable.
    Payload(Format),

    /// Represents the `attributes` variable.
    Attributes,

    /// Represents the `authentication` variable.
    Authentication,
}

/// Represents the format for the `payload` variable.
#[derive(Debug, Clone)]
pub enum Format {
    /// Represents JSON format.
    Json,

    /// Represents plain text format.
    PlainText,
}