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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Survey
impl<'de> Deserialize<'de> for Survey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Survey
impl Resource for Survey
impl ResponseResult for Survey
Auto Trait Implementations§
impl Freeze for Survey
impl RefUnwindSafe for Survey
impl Send for Survey
impl Sync for Survey
impl Unpin for Survey
impl UnwindSafe for Survey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more