pub struct ReporterStatsBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ReporterStatsBuilder<'a, Empty>
impl<'a> ReporterStatsBuilder<'a, Empty>
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn account_report_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetAccountReportCount<S>>
pub fn account_report_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetAccountReportCount<S>>
Set the accountReportCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn labeled_account_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetLabeledAccountCount<S>>
pub fn labeled_account_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetLabeledAccountCount<S>>
Set the labeledAccountCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn labeled_record_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetLabeledRecordCount<S>>
pub fn labeled_record_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetLabeledRecordCount<S>>
Set the labeledRecordCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn record_report_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetRecordReportCount<S>>
pub fn record_report_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetRecordReportCount<S>>
Set the recordReportCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn reported_account_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetReportedAccountCount<S>>
pub fn reported_account_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetReportedAccountCount<S>>
Set the reportedAccountCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn reported_record_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetReportedRecordCount<S>>
pub fn reported_record_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetReportedRecordCount<S>>
Set the reportedRecordCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn takendown_account_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetTakendownAccountCount<S>>
pub fn takendown_account_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetTakendownAccountCount<S>>
Set the takendownAccountCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>
impl<'a, S> ReporterStatsBuilder<'a, S>
Sourcepub fn takendown_record_count(
self,
value: impl Into<i64>,
) -> ReporterStatsBuilder<'a, SetTakendownRecordCount<S>>
pub fn takendown_record_count( self, value: impl Into<i64>, ) -> ReporterStatsBuilder<'a, SetTakendownRecordCount<S>>
Set the takendownRecordCount field (required)
Source§impl<'a, S> ReporterStatsBuilder<'a, S>where
S: State,
S::RecordReportCount: IsSet,
S::LabeledRecordCount: IsSet,
S::AccountReportCount: IsSet,
S::LabeledAccountCount: IsSet,
S::TakendownAccountCount: IsSet,
S::Did: IsSet,
S::ReportedRecordCount: IsSet,
S::TakendownRecordCount: IsSet,
S::ReportedAccountCount: IsSet,
impl<'a, S> ReporterStatsBuilder<'a, S>where
S: State,
S::RecordReportCount: IsSet,
S::LabeledRecordCount: IsSet,
S::AccountReportCount: IsSet,
S::LabeledAccountCount: IsSet,
S::TakendownAccountCount: IsSet,
S::Did: IsSet,
S::ReportedRecordCount: IsSet,
S::TakendownRecordCount: IsSet,
S::ReportedAccountCount: IsSet,
Sourcepub fn build(self) -> ReporterStats<'a>
pub fn build(self) -> ReporterStats<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ReporterStats<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ReporterStats<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for ReporterStatsBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ReporterStatsBuilder<'a, S>
impl<'a, S> Send for ReporterStatsBuilder<'a, S>
impl<'a, S> Sync for ReporterStatsBuilder<'a, S>
impl<'a, S> Unpin for ReporterStatsBuilder<'a, S>
impl<'a, S> UnsafeUnpin for ReporterStatsBuilder<'a, S>
impl<'a, S> UnwindSafe for ReporterStatsBuilder<'a, S>
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