Struct activitystreams::activity::Question [−][src]
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: QuestionType
question_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 IntransitiveActivity for Question
[src]
impl IntransitiveActivity for Question
impl<'de> Deserialize<'de> for Question
[src]
impl<'de> Deserialize<'de> for Question
fn deserialize<__D>(
__deserializer: __D
) -> Result<Question, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Question, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Object for Question
[src]
impl Object for Question
impl ActivityExt for Question
[src]
impl ActivityExt for Question
fn props(&self) -> &ActivityProperties
[src]
fn props(&self) -> &ActivityProperties
fn props_mut(&mut self) -> &mut ActivityProperties
[src]
fn props_mut(&mut self) -> &mut ActivityProperties
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)
Performs copy-assignment from source
. Read more
impl Default for Question
[src]
impl Default for Question
impl ObjectExt for Question
[src]
impl ObjectExt for Question
fn props(&self) -> &ObjectProperties
[src]
fn props(&self) -> &ObjectProperties
fn props_mut(&mut self) -> &mut ObjectProperties
[src]
fn props_mut(&mut self) -> &mut ObjectProperties
impl Debug for Question
[src]
impl Debug for Question
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Serialize for Question
[src]
impl Serialize for Question
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Activity for Question
[src]
impl Activity for Question