Struct activitystreams::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 Activity for Question
[src]

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Question
[src]

Serialize this value into the given Serde serializer. Read more

impl IntransitiveActivity for Question
[src]

impl ActivityExt for Question
[src]

impl Clone for Question
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Question
[src]

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

impl Debug for Question
[src]

Formats the value using the given formatter. Read more

impl ObjectExt for Question
[src]

impl Object for Question
[src]

Auto Trait Implementations

impl Send for Question

impl Sync for Question