[][src]Struct google_mybusiness4::Question

pub struct Question {
    pub total_answer_count: Option<i32>,
    pub update_time: Option<String>,
    pub top_answers: Option<Vec<Answer>>,
    pub name: Option<String>,
    pub author: Option<Author>,
    pub text: Option<String>,
    pub create_time: Option<String>,
    pub upvote_count: Option<i32>,
}

Represents a single question and some of its answers.

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

total_answer_count: Option<i32>

Output only. The total number of answers posted for this question.

update_time: Option<String>

Output only. The timestamp for when the question was last modified.

top_answers: Option<Vec<Answer>>

Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question)

name: Option<String>

Output only. The unique name for the question. accounts//locations//questions/*

author: Option<Author>

Output only. The author of the question.

text: Option<String>

The text of the question. It should contain at least two words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters.

create_time: Option<String>

Output only. The timestamp for when the question was written.

upvote_count: Option<i32>

Output only. The number of upvotes for the question.

Trait Implementations

impl Clone for Question[src]

impl Debug for Question[src]

impl Default for Question[src]

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

impl RequestValue for Question[src]

impl ResponseResult for Question[src]

impl Serialize for Question[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: 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