#[non_exhaustive]
pub struct Builder { /* private fields */ }
Expand description

A builder for CampaignResponse

Implementations

Appends an item to additional_treatments.

To override the contents of this collection use set_additional_treatments.

An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

The unique identifier for the application that the campaign applies to.

The unique identifier for the application that the campaign applies to.

The Amazon Resource Name (ARN) of the campaign.

The Amazon Resource Name (ARN) of the campaign.

The date, in ISO 8601 format, when the campaign was created.

The date, in ISO 8601 format, when the campaign was created.

The delivery configuration settings for sending the campaign through a custom channel.

The delivery configuration settings for sending the campaign through a custom channel.

The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

The custom description of the campaign.

The custom description of the campaign.

The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

The unique identifier for the campaign.

The unique identifier for the campaign.

Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

The date, in ISO 8601 format, when the campaign was last modified.

The date, in ISO 8601 format, when the campaign was last modified.

The messaging limits for the campaign.

The messaging limits for the campaign.

The message configuration settings for the campaign.

The message configuration settings for the campaign.

The name of the campaign.

The name of the campaign.

The schedule settings for the campaign.

The schedule settings for the campaign.

The unique identifier for the segment that's associated with the campaign.

The unique identifier for the segment that's associated with the campaign.

The version number of the segment that's associated with the campaign.

The version number of the segment that's associated with the campaign.

The current status of the campaign.

The current status of the campaign.

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.

A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.

The message template that’s used for the campaign.

The message template that’s used for the campaign.

The custom description of the default treatment for the campaign.

The custom description of the default treatment for the campaign.

The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

The version number of the campaign.

The version number of the campaign.

Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.

Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.

Consumes the builder and constructs a CampaignResponse

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more