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: FlagPropertiesAdds all valid flag properties to this struct
object_props: ObjectPropertiesAdds all valid object properties to this struct
activity_props: ActivityPropertiesAdds all valid activity properties to this struct
Implementations§
Trait Implementations§
Source§impl AsMut<ActivityProperties> for Flag
impl AsMut<ActivityProperties> for Flag
Source§fn as_mut(&mut self) -> &mut ActivityProperties
fn as_mut(&mut self) -> &mut ActivityProperties
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<ActorAndObjectProperties> for Flag
impl AsMut<ActorAndObjectProperties> for Flag
Source§fn as_mut(&mut self) -> &mut FlagProperties
fn as_mut(&mut self) -> &mut FlagProperties
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<ObjectProperties> for Flag
impl AsMut<ObjectProperties> for Flag
Source§fn as_mut(&mut self) -> &mut ObjectProperties
fn as_mut(&mut self) -> &mut ObjectProperties
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ActivityProperties> for Flag
impl AsRef<ActivityProperties> for Flag
Source§fn as_ref(&self) -> &ActivityProperties
fn as_ref(&self) -> &ActivityProperties
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ActorAndObjectProperties> for Flag
impl AsRef<ActorAndObjectProperties> for Flag
Source§fn as_ref(&self) -> &FlagProperties
fn as_ref(&self) -> &FlagProperties
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<ObjectProperties> for Flag
impl AsRef<ObjectProperties> for Flag
Source§fn as_ref(&self) -> &ObjectProperties
fn as_ref(&self) -> &ObjectProperties
Converts this type into a shared reference of the (usually inferred) input type.
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 TryFrom<Flag> for ActivityBox
impl TryFrom<Flag> for ActivityBox
impl Activity for Flag
impl Base 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 UnsafeUnpin 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