[][src]Struct mailchimp::types::VariateSettingsType

pub struct VariateSettingsType {
    pub winning_combination_id: Option<String>,
    pub winning_campaign_id: Option<String>,
    pub winner_criteria: Option<String>,
    pub wait_time: Option<u64>,
    pub test_size: Option<u64>,
    pub subject_lines: Option<Vec<String>>,
    pub send_times: Option<Vec<String>>,
    pub from_names: Option<Vec<String>>,
    pub reply_to_addresses: Option<Vec<String>>,
    pub contents: Option<Vec<String>>,
    pub combinations: Option<Vec<CombinationsType>>,
}

The settings specific to A/B test campaigns.

Fields

winning_combination_id: Option<String>

ID for the winning combination.

winning_campaign_id: Option<String>

ID of the campaign that was sent to the remaining recipients based on the winning combination.

winner_criteria: Option<String>

The combination that performs the best. This may be determined automatically by click rate, open rate, or total revenue—or you may choose manually based on the reporting data you find the most valuable. For Multivariate Campaigns testing send_time, winner_criteria is ignored. For Multivariate Campaigns with ‘manual’ as the winner_criteria, the winner must be chosen in the Mailchimp web application.

wait_time: Option<u64>

The number of minutes to wait before choosing the winning campaign. The value of wait_time must be greater than 0 and in whole hours, specified in minutes.

test_size: Option<u64>

The percentage of recipients to send the test combinations to, must be a value between 10 and 100.

subject_lines: Option<Vec<String>>

The possible subject lines to test. If no subject lines are provided, settings.subject_line will be used.

send_times: Option<Vec<String>>

The possible send times to test. The times provided should be in the format YYYY-MM-DD HH:MM:SS. If send_times are provided to test, the test_size will be set to 100% and winner_criteria will be ignored.

from_names: Option<Vec<String>>

The possible from names. The number of from_names provided must match the number of reply_to_addresses. If no from_names are provided, settings.from_name will be used.

reply_to_addresses: Option<Vec<String>>

The possible reply-to addresses. The number of reply_to_addresses provided must match the number of from_names. If no reply_to_addresses are provided, settings.reply_to will be used.

contents: Option<Vec<String>>

Descriptions of possible email contents. To set campaign contents, make a PUT request to /campaigns/{campaign_id}/content with the field ‘variate_contents’.

combinations: Option<Vec<CombinationsType>>

Combinations of possible variables used to build emails.

Trait Implementations

impl Default for VariateSettingsType[src]

impl Clone for VariateSettingsType[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VariateSettingsType[src]

impl Serialize for VariateSettingsType[src]

impl<'de> Deserialize<'de> for VariateSettingsType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err