pub struct Threadgate<'a> {
pub allow: Option<Vec<ThreadgateAllowItem<'a>>>,
pub created_at: Datetime,
pub hidden_replies: Option<Vec<AtUri<'a>>>,
pub post: AtUri<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread’s root post, and that record must be in the same repository.
Fields§
§allow: Option<Vec<ThreadgateAllowItem<'a>>>List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
created_at: DatetimeList of hidden reply URIs.
post: AtUri<'a>Reference (AT-URI) to the post record.
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl<'a> Clone for Threadgate<'a>
impl<'a> Clone for Threadgate<'a>
Source§fn clone(&self) -> Threadgate<'a>
fn clone(&self) -> Threadgate<'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 Collection for Threadgate<'_>
impl Collection for Threadgate<'_>
Source§const NSID: &'static str = "app.bsky.feed.threadgate"
const NSID: &'static str = "app.bsky.feed.threadgate"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = ThreadgateRecord
type Record = ThreadgateRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by [Agent::get_record] to return properly typed responses.Source§impl<'a> Debug for Threadgate<'a>
impl<'a> Debug for Threadgate<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for Threadgate<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Threadgate<'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 From<ThreadgateGetRecordOutput<'_>> for Threadgate<'_>
impl From<ThreadgateGetRecordOutput<'_>> for Threadgate<'_>
Source§fn from(output: ThreadgateGetRecordOutput<'_>) -> Self
fn from(output: ThreadgateGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Threadgate<'a>
impl<'a> IntoStatic for Threadgate<'a>
Source§type Output = Threadgate<'static>
type Output = Threadgate<'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 Threadgate<'a>
impl<'a> PartialEq for Threadgate<'a>
Source§impl<'a> Serialize for Threadgate<'a>
impl<'a> Serialize for Threadgate<'a>
impl<'a> Eq for Threadgate<'a>
impl<'a> StructuralPartialEq for Threadgate<'a>
Auto Trait Implementations§
impl<'a> Freeze for Threadgate<'a>
impl<'a> RefUnwindSafe for Threadgate<'a>
impl<'a> Send for Threadgate<'a>
impl<'a> Sync for Threadgate<'a>
impl<'a> Unpin for Threadgate<'a>
impl<'a> UnwindSafe for Threadgate<'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.