pub struct Question { /* private fields */ }
Expand description

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.

Implementations§

Create a new Question Activity

use activitystreams::activity::Question;

let activity = Question::new();

Deconstruct the Question into its parts

use activitystreams::activity::Question;

let activity = Question::new();

let (one_of, any_of, activity) = activity.into_parts();

Trait Implementations§

Immutable borrow of Activity<Kind>
Mutable borrow of Activity<Kind>
Immutable borrow of Question
Mutable borrow of Question
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
The erro produced must be a StdError
Produce an object from the Base
Produce a base from the object
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get a mutable reference to Unparsed

Auto Trait Implementations§

Blanket Implementations§

Fetch the result for the current activity Read more
Set the result for the current activity Read more
Set many results for the current activity Read more
Add a result to the current activity Read more
Take the result from the current activity, leaving nothing Read more
Delete the result from the current activity Read more
Fetch the instrument for the current activity Read more
Set the instrument for the current activity Read more
Set many instruments for the current activity Read more
Add a instrument to the current activity Read more
Take the instrument from the current activity, leaving nothing Read more
Delete the instrument from the current activity Read more
Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Fetch the one_of field for the current activity Read more
Set the one_of field for the current activity Read more
Set many one_of items for the current activity Read more
Add a one_of to the current activity Read more
Take the one_of field from the current activity, leaving nothing Read more
Delete the one_of field from the current activity Read more
Fetch the any_of field for the current activity Read more
Set the any_of field for the current activity Read more
Set many any_of items for the current activity Read more
Add an any_of to the current activity Read more
Take the any_of field from the current activity, leaving nothing Read more
Delete the any_of field from the current activity Read more
Fetch the closed field for the current activity Read more
Set the closed field for the current activity Read more
Set many closed items for the current activity Read more
Set the closed field as a date Read more
Set the closed field as a boolean Read more
Add an object or link to the closed field Read more
Take the closed field from the current activity Read more
Remove the closed field from the current activity Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Remove a value from the Unparsed struct, provided it matches the expected type
Insert a value into the Unparsed struct if the value isn’t Null