[][src]Struct google_surveys2::SurveyCost

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

nanos: Option<String>

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

currency_code: Option<String>

Currency code that the cost is given in.

cost_per_response_nanos: Option<String>

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.

max_cost_per_response_nanos: Option<String>

Deprecated 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. This will no longer be available after June 2018.

Trait Implementations

impl Clone for SurveyCost[src]

impl Debug for SurveyCost[src]

impl Default for SurveyCost[src]

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

impl Part for SurveyCost[src]

impl Serialize for SurveyCost[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Typeable for T where
    T: Any