pub struct Block {
pub kind: BlockType,
pub block_props: BlockProperties,
pub object_props: ObjectProperties,
pub activity_props: ActivityProperties,
}
Expand description
Indicates that the actor is blocking the object.
Blocking is a stronger form of Ignore. The typical use is to support social systems that allow one user to block activities or content of other users. The target and origin typically have no defined meaning.
Fields§
§kind: BlockType
§block_props: BlockProperties
Adds all valid block 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 Block
impl ActivityExt for Block
fn props(&self) -> &ActivityProperties
fn props_mut(&mut self) -> &mut ActivityProperties
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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 Block
impl ObjectExt for Block
fn props(&self) -> &ObjectProperties
fn props_mut(&mut self) -> &mut ObjectProperties
impl Activity for Block
impl Object for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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