Struct activitystreams::activity::Flag [−][src]
pub struct Flag { pub kind: FlagType, pub flag_props: ActorAndObject, pub object_props: ObjectProperties, pub activity_props: ActivityProperties, }
Indicates that the actor is "flagging" the object.
Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons.
Fields
kind: FlagType
flag_props: ActorAndObject
Adds all valid flag 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<'de> Deserialize<'de> for Flag
[src]
impl<'de> Deserialize<'de> for Flag
fn deserialize<__D>(
__deserializer: __D
) -> Result<Flag, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Flag, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Object for Flag
[src]
impl Object for Flag
impl ActivityExt for Flag
[src]
impl ActivityExt for Flag
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 Flag
[src]
impl Clone for Flag
fn clone(&self) -> Flag
[src]
fn clone(&self) -> Flag
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 Default for Flag
[src]
impl Default for Flag
impl ObjectExt for Flag
[src]
impl ObjectExt for Flag
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 Flag
[src]
impl Debug for Flag
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 Flag
[src]
impl Serialize for Flag
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 Flag
[src]
impl Activity for Flag