pub struct ModEventReportBuilder<'a, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'a, S: State> ModEventReportBuilder<'a, S>
impl<'a, S: State> ModEventReportBuilder<'a, S>
Sourcepub fn build(self) -> ModEventReport<'a>where
S: IsComplete,
pub fn build(self) -> ModEventReport<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn comment(
self,
value: impl Into<CowStr<'a>>,
) -> ModEventReportBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
pub fn comment(
self,
value: impl Into<CowStr<'a>>,
) -> ModEventReportBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
Sourcepub fn maybe_comment(
self,
value: Option<impl Into<CowStr<'a>>>,
) -> ModEventReportBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
pub fn maybe_comment(
self,
value: Option<impl Into<CowStr<'a>>>,
) -> ModEventReportBuilder<'a, SetComment<S>>where
S::Comment: IsUnset,
Sourcepub fn is_reporter_muted(
self,
value: impl Into<bool>,
) -> ModEventReportBuilder<'a, SetIsReporterMuted<S>>where
S::IsReporterMuted: IsUnset,
pub fn is_reporter_muted(
self,
value: impl Into<bool>,
) -> ModEventReportBuilder<'a, SetIsReporterMuted<S>>where
S::IsReporterMuted: IsUnset,
Sourcepub fn maybe_is_reporter_muted(
self,
value: Option<impl Into<bool>>,
) -> ModEventReportBuilder<'a, SetIsReporterMuted<S>>where
S::IsReporterMuted: IsUnset,
pub fn maybe_is_reporter_muted(
self,
value: Option<impl Into<bool>>,
) -> ModEventReportBuilder<'a, SetIsReporterMuted<S>>where
S::IsReporterMuted: IsUnset,
Sourcepub fn report_type(
self,
value: ReasonType<'a>,
) -> ModEventReportBuilder<'a, SetReportType<S>>where
S::ReportType: IsUnset,
pub fn report_type(
self,
value: ReasonType<'a>,
) -> ModEventReportBuilder<'a, SetReportType<S>>where
S::ReportType: IsUnset,
Required.
Sourcepub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventReportBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn extra_data(
self,
value: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventReportBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
Sourcepub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> ModEventReportBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
pub fn maybe_extra_data(
self,
value: Option<BTreeMap<SmolStr, Data<'a>>>,
) -> ModEventReportBuilder<'a, SetExtraData<S>>where
S::ExtraData: IsUnset,
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