[][src]Struct activitystreams::activity::apub::Question

pub struct Question {
    pub question_props: QuestionProperties,
    pub object_props: ObjectProperties,
    pub ap_object_props: ApObjectProperties,
    pub activity_props: ActivityProperties,
    // some fields omitted
}

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

question_props: QuestionPropertiesobject_props: ObjectPropertiesap_object_props: ApObjectPropertiesactivity_props: ActivityProperties

Trait Implementations

impl Activity for Question[src]

impl AsMut<ActivityProperties> for Question[src]

impl AsMut<ApObjectProperties> for Question[src]

impl AsMut<ObjectProperties> for Question[src]

impl AsMut<QuestionProperties> for Question[src]

impl AsRef<ActivityProperties> for Question[src]

impl AsRef<ApObjectProperties> 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]

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: Deserialize<'de>, 
[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.