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