Struct activitystreams_types::activity::Question[][src]

pub struct Question {
    pub kind: QuestionType,
    pub question_props: QuestionProperties,
    pub object_props: ObjectProperties,
    pub activity_props: ActivityProperties,
}

Represents a question being asked.

Question objects are an extension of IntransitiveActivity. That is, the Question object is an Activity, but the direct object is the question itself and therefore it would not contain an object property.

Either of the anyOf and oneOf properties MAY be used to express possible answers, but a Question object MUST NOT have both properties.

Fields

Adds all valid question properties to this struct

Adds all valid object properties to this struct

Adds all valid activity properties to this struct

Trait Implementations

impl Clone for Question
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Question
[src]

Formats the value using the given formatter. Read more

impl Default for Question
[src]

Returns the "default value" for a type. Read more

impl Object for Question
[src]

impl ObjectExt for Question
[src]

impl Activity for Question
[src]

impl ActivityExt for Question
[src]

impl IntransitiveActivity for Question
[src]

Auto Trait Implementations

impl Send for Question

impl Sync for Question