[][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

Methods

impl Question[src]

pub fn full() -> Ext<Question, ApObjectProperties>[src]

Generate a fully extended type

This effect can be achieved with Self::new().extend(SomeExtension::default())

impl Question[src]

pub fn new() -> Self[src]

Create from default

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 Base 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]

impl TryFrom<Question> for BaseBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Question> for ObjectBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Question> for ActivityBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Question> for IntransitiveActivityBox[src]

type Error = Error

The type returned in the event of a conversion error.

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: for<'de> Deserialize<'de>, 
[src]

impl<T, U> Extensible<U> for T where
    T: Base,
    U: Extension<T>, 
[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.