pub struct PostInteractionSettingsPref<'a> {
pub postgate_embedding_rules: Option<Vec<Data<'a>>>,
pub threadgate_allow_rules: Option<Vec<Data<'a>>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.
Fields§
§postgate_embedding_rules: Option<Vec<Data<'a>>>Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
threadgate_allow_rules: Option<Vec<Data<'a>>>Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl<'a> Clone for PostInteractionSettingsPref<'a>
impl<'a> Clone for PostInteractionSettingsPref<'a>
Source§fn clone(&self) -> PostInteractionSettingsPref<'a>
fn clone(&self) -> PostInteractionSettingsPref<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PostInteractionSettingsPref<'a>
impl<'a> Debug for PostInteractionSettingsPref<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for PostInteractionSettingsPref<'a>
impl<'de: 'a, 'a> Deserialize<'de> for PostInteractionSettingsPref<'a>
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 IntoStatic for PostInteractionSettingsPref<'_>
impl IntoStatic for PostInteractionSettingsPref<'_>
Source§type Output = PostInteractionSettingsPref<'static>
type Output = PostInteractionSettingsPref<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> PartialEq for PostInteractionSettingsPref<'a>
impl<'a> PartialEq for PostInteractionSettingsPref<'a>
Source§fn eq(&self, other: &PostInteractionSettingsPref<'a>) -> bool
fn eq(&self, other: &PostInteractionSettingsPref<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for PostInteractionSettingsPref<'a>
impl<'a> Serialize for PostInteractionSettingsPref<'a>
impl<'a> Eq for PostInteractionSettingsPref<'a>
impl<'a> StructuralPartialEq for PostInteractionSettingsPref<'a>
Auto Trait Implementations§
impl<'a> Freeze for PostInteractionSettingsPref<'a>
impl<'a> RefUnwindSafe for PostInteractionSettingsPref<'a>
impl<'a> Send for PostInteractionSettingsPref<'a>
impl<'a> Sync for PostInteractionSettingsPref<'a>
impl<'a> Unpin for PostInteractionSettingsPref<'a>
impl<'a> UnwindSafe for PostInteractionSettingsPref<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.