pub struct InteractionRule {
pub automatic_approvals: Vec<Iri>,
pub manual_approvals: Vec<Iri>,
}Expand description
Represents a sub-policy within an {@link InteractionPolicy}, defining which actors receive automatic or manual approval for a specific interaction type (like, reply, or announce).
The type https://gotosocial.org/ns#InteractionRule.
Fields§
§automatic_approvals: Vec<Iri>URIs of actors or collections whose interactions are automatically approved without requiring manual review by the post author.
manual_approvals: Vec<Iri>URIs of actors or collections whose interactions require manual approval by the post author. The post author can accept or reject these interactions at their discretion.
Implementations§
Trait Implementations§
Source§impl Clone for InteractionRule
impl Clone for InteractionRule
Source§fn clone(&self) -> InteractionRule
fn clone(&self) -> InteractionRule
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 InteractionRule
impl Debug for InteractionRule
Source§impl Default for InteractionRule
impl Default for InteractionRule
Source§fn default() -> InteractionRule
fn default() -> InteractionRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InteractionRule
impl<'de> Deserialize<'de> for InteractionRule
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 InteractionRule
impl FromJson for InteractionRule
Source§impl PartialEq for InteractionRule
impl PartialEq for InteractionRule
Source§impl Serialize for InteractionRule
impl Serialize for InteractionRule
impl StructuralPartialEq for InteractionRule
Auto Trait Implementations§
impl Freeze for InteractionRule
impl RefUnwindSafe for InteractionRule
impl Send for InteractionRule
impl Sync for InteractionRule
impl Unpin for InteractionRule
impl UnsafeUnpin for InteractionRule
impl UnwindSafe for InteractionRule
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