#[non_exhaustive]pub struct CreateVariableInput {
pub name: Option<String>,
pub data_type: Option<DataType>,
pub data_source: Option<DataSource>,
pub default_value: Option<String>,
pub description: Option<String>,
pub variable_type: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the variable.
data_type: Option<DataType>
The data type of the variable.
data_source: Option<DataSource>
The source of the data.
default_value: Option<String>
The default value for the variable when no value is received.
description: Option<String>
The description.
variable_type: Option<String>
The variable type. For more information see Variable types.
Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT
A collection of key and value pairs.
Implementations§
source§impl CreateVariableInput
impl CreateVariableInput
sourcepub fn data_source(&self) -> Option<&DataSource>
pub fn data_source(&self) -> Option<&DataSource>
The source of the data.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value for the variable when no value is received.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description.
sourcepub fn variable_type(&self) -> Option<&str>
pub fn variable_type(&self) -> Option<&str>
The variable type. For more information see Variable types.
Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT
A collection of key and value pairs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateVariableInput
impl CreateVariableInput
sourcepub fn builder() -> CreateVariableInputBuilder
pub fn builder() -> CreateVariableInputBuilder
Creates a new builder-style object to manufacture CreateVariableInput
.
Trait Implementations§
source§impl Clone for CreateVariableInput
impl Clone for CreateVariableInput
source§fn clone(&self) -> CreateVariableInput
fn clone(&self) -> CreateVariableInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateVariableInput
impl Debug for CreateVariableInput
source§impl PartialEq for CreateVariableInput
impl PartialEq for CreateVariableInput
source§fn eq(&self, other: &CreateVariableInput) -> bool
fn eq(&self, other: &CreateVariableInput) -> bool
self
and other
values to be equal, and is used
by ==
.