Struct activitypub::activity::Question [−][src]
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: QuestionProperties
object_props: ObjectProperties
ap_object_props: ApObjectProperties
activity_props: ActivityProperties
Trait Implementations
impl Clone for Question
[src]
impl Clone for Question
fn clone(&self) -> Question
[src]
fn clone(&self) -> Question
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Debug for Question
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Question
[src]
impl Default for Question
impl Object for Question
[src]
impl Object for Question
impl Activity for Question
[src]
impl Activity for Question
impl IntransitiveActivity for Question
[src]
impl IntransitiveActivity for Question