Struct google_surveys2::api::Survey
source · pub struct Survey {
pub audience: Option<SurveyAudience>,
pub cost: Option<SurveyCost>,
pub customer_data: Option<Vec<u8>>,
pub description: Option<String>,
pub owners: Option<Vec<String>>,
pub questions: Option<Vec<SurveyQuestion>>,
pub rejection_reason: Option<SurveyRejection>,
pub state: Option<String>,
pub survey_url_id: Option<String>,
pub title: Option<String>,
pub wanted_response_count: Option<i32>,
}
Expand description
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).
- delete surveys (none)
- get surveys (response)
- insert surveys (request|response)
- list surveys (none)
- start surveys (none)
- stop surveys (none)
- update surveys (request|response)
Fields§
§audience: Option<SurveyAudience>
Targeting-criteria message containing demographic information
cost: Option<SurveyCost>
Cost to run the survey and collect the necessary number of responses.
customer_data: Option<Vec<u8>>
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.
description: Option<String>
Text description of the survey.
owners: Option<Vec<String>>
List of email addresses for survey owners. Must contain at least the address of the user making the API call.
questions: Option<Vec<SurveyQuestion>>
List of questions defining the survey.
rejection_reason: Option<SurveyRejection>
Reason for the survey being rejected. Only present if the survey state is rejected.
state: Option<String>
State that the survey is in.
survey_url_id: Option<String>
Unique survey ID, that is viewable in the URL of the Survey Creator UI
title: Option<String>
Optional name that will be given to the survey.
wanted_response_count: Option<i32>
Number of responses desired for the survey.