Struct google_surveys2::SurveyCost[][src]

pub struct SurveyCost {
    pub nanos: Option<String>,
    pub currency_code: Option<String>,
    pub cost_per_response_nanos: Option<String>,
    pub max_cost_per_response_nanos: Option<String>,
}

Message defining the cost to run a given survey through API.

This type is not used in any activity, and only used as part of another schema.

Fields

Cost of survey in nano units of the given currency. DEPRECATED in favor of cost_per_response_nanos

Currency code that the cost is given in.

Cost per survey response in nano units of the given currency. To get the total cost for a survey, multiply this value by wanted_response_count.

Threshold to start a survey automatically if the quoted price is at most this value. When a survey has a Screener (threshold) question, it must go through an incidence pricing test to determine the final cost per response. Typically you will have to make a followup call to start the survey giving the final computed cost per response. If the survey has no threshold_answers, setting this property will return an error. By specifying this property, you indicate the max price per response you are willing to pay in advance of the incidence test. If the price turns out to be lower than the specified value, the survey will begin immediately and you will be charged at the rate determined by the incidence pricing test. If the price turns out to be greater than the specified value the survey will not be started and you will instead be notified what price was determined by the incidence test. At that point, you must raise the value of this property to be greater than or equal to that cost before attempting to start the survey again. This will immediately start the survey as long the incidence test was run within the last 21 days.

Trait Implementations

impl Default for SurveyCost
[src]

Returns the "default value" for a type. Read more

impl Clone for SurveyCost
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SurveyCost
[src]

Formats the value using the given formatter. Read more

impl Part for SurveyCost
[src]

Auto Trait Implementations

impl Send for SurveyCost

impl Sync for SurveyCost