pub struct SliceView<S: BosStr = DefaultStr> {Show 13 fields
pub cid: Cid<S>,
pub created_at: Datetime,
pub creator: ProfileViewBasic<S>,
pub domain: S,
pub indexed_actor_count: Option<i64>,
pub indexed_collection_count: Option<i64>,
pub indexed_record_count: Option<i64>,
pub name: S,
pub sparkline: Option<Vec<SparklinePoint<S>>>,
pub uri: AtUri<S>,
pub waitlist_invite_count: Option<i64>,
pub waitlist_request_count: Option<i64>,
pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}Fields§
§cid: Cid<S>§created_at: Datetime§creator: ProfileViewBasic<S>Profile of the slice creator
domain: SPrimary domain namespace for this slice (e.g. social.grain)
indexed_actor_count: Option<i64>Total number of unique indexed actors in this slice
indexed_collection_count: Option<i64>Number of collections with indexed records
indexed_record_count: Option<i64>Total number of indexed records in this slice
name: SDisplay name of the slice
sparkline: Option<Vec<SparklinePoint<S>>>Recent activity sparkline data points for the last 24 hours
uri: AtUri<S>§waitlist_invite_count: Option<i64>Total number of waitlist invites for this slice
waitlist_request_count: Option<i64>Total number of waitlist requests for this slice
extra_data: Option<BTreeMap<SmolStr, Data<S>>>Implementations§
Source§impl SliceView<DefaultStr>
impl SliceView<DefaultStr>
Sourcepub fn new() -> SliceViewBuilder<Empty, DefaultStr>
pub fn new() -> SliceViewBuilder<Empty, DefaultStr>
Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for SliceView<S>where
S: Deserialize<'de> + BosStr,
impl<'de, S> Deserialize<'de> for SliceView<S>where
S: Deserialize<'de> + BosStr,
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
impl<S: Eq + BosStr> Eq for SliceView<S>
Source§impl<S: BosStr + IntoStatic> IntoStatic for SliceView<S>
impl<S: BosStr + IntoStatic> IntoStatic for SliceView<S>
Source§impl<S: BosStr> LexiconSchema for SliceView<S>
impl<S: BosStr> LexiconSchema for SliceView<S>
Source§fn lexicon_doc() -> LexiconDoc<'static>
fn lexicon_doc() -> LexiconDoc<'static>
Generate the lexicon document for this type Read more
Source§fn validate(&self) -> Result<(), ConstraintError>
fn validate(&self) -> Result<(), ConstraintError>
Validate an instance against lexicon constraints Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether this type should be inlined vs referenced Read more
Source§impl<S: PartialEq + BosStr> PartialEq for SliceView<S>
impl<S: PartialEq + BosStr> PartialEq for SliceView<S>
impl<S: BosStr> StructuralPartialEq for SliceView<S>
Auto Trait Implementations§
impl<S> Freeze for SliceView<S>where
S: Freeze,
impl<S> RefUnwindSafe for SliceView<S>where
S: RefUnwindSafe,
impl<S> Send for SliceView<S>where
S: Send,
impl<S> Sync for SliceView<S>where
S: Sync,
impl<S> Unpin for SliceView<S>where
S: Unpin,
impl<S> UnsafeUnpin for SliceView<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SliceView<S>where
S: UnwindSafe + RefUnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.