[][src]Struct google_surveys2::Survey

pub struct Survey {
    pub owners: Option<Vec<String>>,
    pub description: Option<String>,
    pub title: Option<String>,
    pub customer_data: Option<String>,
    pub state: Option<String>,
    pub audience: Option<SurveyAudience>,
    pub cost: Option<SurveyCost>,
    pub survey_url_id: Option<String>,
    pub questions: Option<Vec<SurveyQuestion>>,
    pub wanted_response_count: Option<i32>,
    pub rejection_reason: Option<SurveyRejection>,
}

Representation of an individual survey object.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

owners: Option<Vec<String>>

List of email addresses for survey owners. Must contain at least the address of the user making the API call.

description: Option<String>

Text description of the survey.

title: Option<String>

Optional name that will be given to the survey.

customer_data: Option<String>

Additional information to store on behalf of the API consumer and associate with this question. This binary blob is treated as opaque. This field is limited to 64K bytes.

state: Option<String>

State that the survey is in.

audience: Option<SurveyAudience>

Targeting-criteria message containing demographic information

cost: Option<SurveyCost>

Cost to run the survey and collect the necessary number of responses.

survey_url_id: Option<String>

Unique survey ID, that is viewable in the URL of the Survey Creator UI

questions: Option<Vec<SurveyQuestion>>

List of questions defining the survey.

wanted_response_count: Option<i32>

Number of responses desired for the survey.

rejection_reason: Option<SurveyRejection>

Reason for the survey being rejected. Only present if the survey state is rejected.

Trait Implementations

impl Clone for Survey[src]

impl Debug for Survey[src]

impl Default for Survey[src]

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

impl RequestValue for Survey[src]

impl Resource for Survey[src]

impl ResponseResult for Survey[src]

impl Serialize for Survey[src]

Auto Trait Implementations

impl RefUnwindSafe for Survey

impl Send for Survey

impl Sync for Survey

impl Unpin for Survey

impl UnwindSafe for Survey

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