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

impl AsMut<ActivityProperties> for Question[src]

impl AsMut<ObjectProperties> for Question[src]

impl AsMut<QuestionProperties> for Question[src]

impl AsRef<ActivityProperties> for Question[src]

impl AsRef<ObjectProperties> for Question[src]

impl AsRef<QuestionProperties> for Question[src]

impl Clone for Question[src]

impl Debug for Question[src]

impl Default for Question[src]

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

impl IntransitiveActivity for Question[src]

impl Object for Question[src]

impl Serialize for Question[src]

Auto Trait Implementations

impl !RefUnwindSafe for Question

impl !Send for Question

impl !Sync for Question

impl Unpin for Question

impl !UnwindSafe for Question

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> Serialize for T where
    T: Serialize + ?Sized
[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.