#[non_exhaustive]
pub struct InAppMessageCampaign { pub campaign_id: Option<String>, pub daily_cap: i32, pub in_app_message: Option<InAppMessage>, pub priority: i32, pub schedule: Option<InAppCampaignSchedule>, pub session_cap: i32, pub total_cap: i32, pub treatment_id: Option<String>, }
Expand description

Targeted in-app message campaign.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
campaign_id: Option<String>

Campaign id of the corresponding campaign.

daily_cap: i32

Daily cap which controls the number of times any in-app messages can be shown to the endpoint during a day.

in_app_message: Option<InAppMessage>

In-app message content with all fields required for rendering an in-app message.

priority: i32

Priority of the in-app message.

schedule: Option<InAppCampaignSchedule>

Schedule of the campaign.

session_cap: i32

Session cap which controls the number of times an in-app message can be shown to the endpoint during an application session.

total_cap: i32

Total cap which controls the number of times an in-app message can be shown to the endpoint.

treatment_id: Option<String>

Treatment id of the campaign.

Implementations

Campaign id of the corresponding campaign.

Daily cap which controls the number of times any in-app messages can be shown to the endpoint during a day.

In-app message content with all fields required for rendering an in-app message.

Priority of the in-app message.

Schedule of the campaign.

Session cap which controls the number of times an in-app message can be shown to the endpoint during an application session.

Total cap which controls the number of times an in-app message can be shown to the endpoint.

Treatment id of the campaign.

Creates a new builder-style object to manufacture InAppMessageCampaign

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

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