pub struct InteractionPolicy {
pub can_feature: Option<Box<InteractionRule>>,
pub can_like: Option<Box<InteractionRule>>,
pub can_reply: Option<Box<InteractionRule>>,
pub can_announce: Option<Box<InteractionRule>>,
pub can_quote: Option<Box<InteractionRule>>,
}Expand description
Represents an interaction policy attached to a post, specifying who can like, reply to, announce, or quote it. Each sub-policy ({@link InteractionRule}) defines which actors receive automatic or manual approval.
The type https://gotosocial.org/ns#InteractionPolicy.
Fields§
§can_feature: Option<Box<InteractionRule>>The sub-policy specifying who can feature the actor in a {@link FeaturedCollection}.
can_like: Option<Box<InteractionRule>>The sub-policy specifying who can like the post.
can_reply: Option<Box<InteractionRule>>The sub-policy specifying who can reply to the post.
can_announce: Option<Box<InteractionRule>>The sub-policy specifying who can announce (boost) the post.
can_quote: Option<Box<InteractionRule>>The sub-policy specifying who can quote the post.
Implementations§
Trait Implementations§
Source§impl Clone for InteractionPolicy
impl Clone for InteractionPolicy
Source§fn clone(&self) -> InteractionPolicy
fn clone(&self) -> InteractionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractionPolicy
impl Debug for InteractionPolicy
Source§impl Default for InteractionPolicy
impl Default for InteractionPolicy
Source§fn default() -> InteractionPolicy
fn default() -> InteractionPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InteractionPolicy
impl<'de> Deserialize<'de> for InteractionPolicy
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromJson for InteractionPolicy
impl FromJson for InteractionPolicy
Source§impl PartialEq for InteractionPolicy
impl PartialEq for InteractionPolicy
Source§impl Serialize for InteractionPolicy
impl Serialize for InteractionPolicy
impl StructuralPartialEq for InteractionPolicy
Auto Trait Implementations§
impl Freeze for InteractionPolicy
impl RefUnwindSafe for InteractionPolicy
impl Send for InteractionPolicy
impl Sync for InteractionPolicy
impl Unpin for InteractionPolicy
impl UnsafeUnpin for InteractionPolicy
impl UnwindSafe for InteractionPolicy
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