pub struct CollectionStatsBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> CollectionStatsBuilder<Empty, S>
impl<S: BosStr> CollectionStatsBuilder<Empty, S>
Source§impl<St, S: BosStr> CollectionStatsBuilder<St, S>
impl<St, S: BosStr> CollectionStatsBuilder<St, S>
Sourcepub fn collection(
self,
value: impl Into<Nsid<S>>,
) -> CollectionStatsBuilder<SetCollection<St>, S>
pub fn collection( self, value: impl Into<Nsid<S>>, ) -> CollectionStatsBuilder<SetCollection<St>, S>
Set the collection field (required)
Source§impl<St, S: BosStr> CollectionStatsBuilder<St, S>
impl<St, S: BosStr> CollectionStatsBuilder<St, S>
Sourcepub fn record_count(
self,
value: impl Into<i64>,
) -> CollectionStatsBuilder<SetRecordCount<St>, S>
pub fn record_count( self, value: impl Into<i64>, ) -> CollectionStatsBuilder<SetRecordCount<St>, S>
Set the recordCount field (required)
Source§impl<St, S: BosStr> CollectionStatsBuilder<St, S>
impl<St, S: BosStr> CollectionStatsBuilder<St, S>
Sourcepub fn unique_actors(
self,
value: impl Into<i64>,
) -> CollectionStatsBuilder<SetUniqueActors<St>, S>
pub fn unique_actors( self, value: impl Into<i64>, ) -> CollectionStatsBuilder<SetUniqueActors<St>, S>
Set the uniqueActors field (required)
Source§impl<St, S: BosStr> CollectionStatsBuilder<St, S>
impl<St, S: BosStr> CollectionStatsBuilder<St, S>
Sourcepub fn build(self) -> CollectionStats<S>
pub fn build(self) -> CollectionStats<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> CollectionStats<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> CollectionStats<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for CollectionStatsBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for CollectionStatsBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for CollectionStatsBuilder<St, S>where
S: Send,
impl<St, S> Sync for CollectionStatsBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for CollectionStatsBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for CollectionStatsBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for CollectionStatsBuilder<St, S>where
S: UnwindSafe,
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