pub struct CreateVariableRequest {
pub data_source: String,
pub data_type: String,
pub default_value: String,
pub description: Option<String>,
pub name: String,
pub tags: Option<Vec<Tag>>,
pub variable_type: Option<String>,
}
Fields
data_source: String
The source of the data.
data_type: String
The data type.
default_value: String
The default value for the variable when no value is received.
description: Option<String>
The description.
name: String
The name of the variable.
A collection of key and value pairs.
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
Trait Implementations
sourceimpl Clone for CreateVariableRequest
impl Clone for CreateVariableRequest
sourcefn clone(&self) -> CreateVariableRequest
fn clone(&self) -> CreateVariableRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateVariableRequest
impl Debug for CreateVariableRequest
sourceimpl Default for CreateVariableRequest
impl Default for CreateVariableRequest
sourcefn default() -> CreateVariableRequest
fn default() -> CreateVariableRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateVariableRequest> for CreateVariableRequest
impl PartialEq<CreateVariableRequest> for CreateVariableRequest
sourcefn eq(&self, other: &CreateVariableRequest) -> bool
fn eq(&self, other: &CreateVariableRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateVariableRequest) -> bool
fn ne(&self, other: &CreateVariableRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateVariableRequest
impl Serialize for CreateVariableRequest
impl StructuralPartialEq for CreateVariableRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateVariableRequest
impl Send for CreateVariableRequest
impl Sync for CreateVariableRequest
impl Unpin for CreateVariableRequest
impl UnwindSafe for CreateVariableRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more