pub struct ModEventReportBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ModEventReportBuilder<'a, Empty>
impl<'a> ModEventReportBuilder<'a, Empty>
Source§impl<'a, S: State> ModEventReportBuilder<'a, S>
impl<'a, S: State> ModEventReportBuilder<'a, S>
Source§impl<'a, S: State> ModEventReportBuilder<'a, S>
impl<'a, S: State> ModEventReportBuilder<'a, S>
Sourcepub fn is_reporter_muted(self, value: impl Into<Option<bool>>) -> Self
pub fn is_reporter_muted(self, value: impl Into<Option<bool>>) -> Self
Set the isReporterMuted field (optional)
Sourcepub fn maybe_is_reporter_muted(self, value: Option<bool>) -> Self
pub fn maybe_is_reporter_muted(self, value: Option<bool>) -> Self
Set the isReporterMuted field to an Option value (optional)
Source§impl<'a, S> ModEventReportBuilder<'a, S>
impl<'a, S> ModEventReportBuilder<'a, S>
Sourcepub fn report_type(
self,
value: impl Into<ReasonType<'a>>,
) -> ModEventReportBuilder<'a, SetReportType<S>>
pub fn report_type( self, value: impl Into<ReasonType<'a>>, ) -> ModEventReportBuilder<'a, SetReportType<S>>
Set the reportType field (required)
Source§impl<'a, S> ModEventReportBuilder<'a, S>
impl<'a, S> ModEventReportBuilder<'a, S>
Sourcepub fn build(self) -> ModEventReport<'a>
pub fn build(self) -> ModEventReport<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventReport<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ModEventReport<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for ModEventReportBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ModEventReportBuilder<'a, S>
impl<'a, S> Send for ModEventReportBuilder<'a, S>
impl<'a, S> Sync for ModEventReportBuilder<'a, S>
impl<'a, S> Unpin for ModEventReportBuilder<'a, S>
impl<'a, S> UnwindSafe for ModEventReportBuilder<'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