pub struct Flag {
pub kind: FlagType,
pub flag_props: FlagProperties,
pub object_props: ObjectProperties,
pub activity_props: ActivityProperties,
}
Expand description
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: FlagProperties
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§
Source§impl ActivityExt for Flag
impl ActivityExt for Flag
fn props(&self) -> &ActivityProperties
fn props_mut(&mut self) -> &mut ActivityProperties
Source§impl<'de> Deserialize<'de> for Flag
impl<'de> Deserialize<'de> for Flag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ObjectExt for Flag
impl ObjectExt for Flag
fn props(&self) -> &ObjectProperties
fn props_mut(&mut self) -> &mut ObjectProperties
impl Activity for Flag
impl Object for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more