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

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

kind: QuestionTypequestion_props: QuestionProperties

Adds all valid question properties to this struct

object_props: ObjectProperties

Adds all valid object properties to this struct

activity_props: ActivityProperties

Adds all valid activity properties to this struct

Trait Implementations

impl ActivityExt for Question
[src]

impl ObjectExt for Question
[src]

impl Default for Question
[src]

impl Clone for Question
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Question
[src]

impl Activity for Question
[src]

impl IntransitiveActivity for Question
[src]

impl Object for Question
[src]

impl Serialize for Question
[src]

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

Auto Trait Implementations

impl Send for Question

impl Sync for Question

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]