pdk_script/input.rs
1// Copyright (c) 2025, Salesforce, Inc.,
2// All rights reserved.
3// For full license text, see the LICENSE.txt file
4
5// use crate::bindings::value::ValueBinding;
6
7/// Represents top-level variables.
8#[derive(Debug, Clone)]
9pub enum Input<'a> {
10 /// Represents the `vars` variable.
11 Vars(&'a str),
12
13 /// Represents the `payload` variable.
14 Payload(Format),
15
16 /// Represents the `attributes` variable.
17 Attributes,
18
19 /// Represents the `authentication` variable.
20 Authentication,
21}
22
23/// Represents the format for the `payload` variable.
24#[derive(Debug, Clone, PartialEq, Copy, Eq)]
25pub enum Format {
26 /// Represents JSON format.
27 Json,
28
29 /// Represents plain text format.
30 PlainText,
31
32 /// Represents XML format.
33 Xml,
34}