pub struct Builder<T>(/* private fields */);
Expand description
A builder for DataReview
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: DataReviewRid) -> Builder<RunRidStage>
pub fn rid(self, rid: DataReviewRid) -> Builder<RunRidStage>
Sets the rid
field.
Source§impl Builder<RunRidStage>
impl Builder<RunRidStage>
Sourcepub fn run_rid(self, run_rid: RunRid) -> Builder<CreatedAtStage>
pub fn run_rid(self, run_rid: RunRid) -> Builder<CreatedAtStage>
Sets the run_rid
field.
Source§impl Builder<CreatedAtStage>
impl Builder<CreatedAtStage>
Sourcepub fn created_at(self, created_at: DateTime<Utc>) -> Builder<CreatedByStage>
pub fn created_at(self, created_at: DateTime<Utc>) -> Builder<CreatedByStage>
Sets the created_at
field.
Source§impl Builder<CreatedByStage>
impl Builder<CreatedByStage>
Sourcepub fn created_by(self, created_by: UserRid) -> Builder<ChecklistStage>
pub fn created_by(self, created_by: UserRid) -> Builder<ChecklistStage>
Sets the created_by
field.
Source§impl Builder<ChecklistStage>
impl Builder<ChecklistStage>
Sourcepub fn checklist(self, checklist: ChecklistEvaluation) -> Builder<ArchivedStage>
pub fn checklist(self, checklist: ChecklistEvaluation) -> Builder<ArchivedStage>
Sets the checklist
field.
Source§impl Builder<ArchivedStage>
impl Builder<ArchivedStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: DataReviewRid) -> Self
pub fn rid(self, rid: DataReviewRid) -> Self
Sets the rid
field.
Sourcepub fn created_at(self, created_at: DateTime<Utc>) -> Self
pub fn created_at(self, created_at: DateTime<Utc>) -> Self
Sets the created_at
field.
Sourcepub fn created_by(self, created_by: UserRid) -> Self
pub fn created_by(self, created_by: UserRid) -> Self
Sets the created_by
field.
Sourcepub fn checklist(self, checklist: ChecklistEvaluation) -> Self
pub fn checklist(self, checklist: ChecklistEvaluation) -> Self
Sets the checklist
field.
Sourcepub fn build(self) -> DataReview
pub fn build(self) -> DataReview
Consumes the builder, returning a DataReview
.
Trait Implementations§
Source§impl From<DataReview> for Builder<Complete>
impl From<DataReview> for Builder<Complete>
Source§fn from(v: DataReview) -> Self
fn from(v: DataReview) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: 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