pub struct CreateReportBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> CreateReportBuilder<'a, Empty>
impl<'a> CreateReportBuilder<'a, Empty>
Source§impl<'a, S: State> CreateReportBuilder<'a, S>
impl<'a, S: State> CreateReportBuilder<'a, S>
Source§impl<'a, S: State> CreateReportBuilder<'a, S>
impl<'a, S: State> CreateReportBuilder<'a, S>
Source§impl<'a, S> CreateReportBuilder<'a, S>
impl<'a, S> CreateReportBuilder<'a, S>
Sourcepub fn reason_type(
self,
value: impl Into<ReasonType<'a>>,
) -> CreateReportBuilder<'a, SetReasonType<S>>
pub fn reason_type( self, value: impl Into<ReasonType<'a>>, ) -> CreateReportBuilder<'a, SetReasonType<S>>
Set the reasonType field (required)
Source§impl<'a, S> CreateReportBuilder<'a, S>
impl<'a, S> CreateReportBuilder<'a, S>
Sourcepub fn subject(
self,
value: impl Into<CreateReportSubject<'a>>,
) -> CreateReportBuilder<'a, SetSubject<S>>
pub fn subject( self, value: impl Into<CreateReportSubject<'a>>, ) -> CreateReportBuilder<'a, SetSubject<S>>
Set the subject field (required)
Source§impl<'a, S> CreateReportBuilder<'a, S>
impl<'a, S> CreateReportBuilder<'a, S>
Sourcepub fn build(self) -> CreateReport<'a>
pub fn build(self) -> CreateReport<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> CreateReport<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> CreateReport<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for CreateReportBuilder<'a, S>
impl<'a, S> RefUnwindSafe for CreateReportBuilder<'a, S>
impl<'a, S> Send for CreateReportBuilder<'a, S>
impl<'a, S> Sync for CreateReportBuilder<'a, S>
impl<'a, S> Unpin for CreateReportBuilder<'a, S>
impl<'a, S> UnsafeUnpin for CreateReportBuilder<'a, S>
impl<'a, S> UnwindSafe for CreateReportBuilder<'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