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<AssetRidStage>
pub fn run_rid(self, run_rid: RunRid) -> Builder<AssetRidStage>
Sets the run_rid
field.
Source§impl Builder<AssetRidStage>
impl Builder<AssetRidStage>
Sourcepub fn asset_rid(self, asset_rid: AssetRid) -> Builder<CreatedAtStage>
pub fn asset_rid(self, asset_rid: AssetRid) -> Builder<CreatedAtStage>
Sets the asset_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<ChecklistRefStage>
pub fn created_by(self, created_by: UserRid) -> Builder<ChecklistRefStage>
Sets the created_by
field.
Source§impl Builder<ChecklistRefStage>
impl Builder<ChecklistRefStage>
Sourcepub fn checklist_ref(
self,
checklist_ref: PinnedChecklistRef,
) -> Builder<ArchivedStage>
pub fn checklist_ref( self, checklist_ref: PinnedChecklistRef, ) -> Builder<ArchivedStage>
Sets the checklist_ref
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: impl Into<Option<ChecklistEvaluation>>,
) -> Self
pub fn checklist( self, checklist: impl Into<Option<ChecklistEvaluation>>, ) -> Self
Sets the checklist
field.
Sourcepub fn checklist_ref(self, checklist_ref: PinnedChecklistRef) -> Self
pub fn checklist_ref(self, checklist_ref: PinnedChecklistRef) -> Self
Sets the checklist_ref
field.
Sourcepub fn insert_check_evaluations(
self,
check_evaluations: AutomaticCheckEvaluation,
) -> Self
pub fn insert_check_evaluations( self, check_evaluations: AutomaticCheckEvaluation, ) -> Self
Adds a value to the check_evaluations
field.
Sourcepub fn check_evaluations(
self,
check_evaluations: impl IntoIterator<Item = AutomaticCheckEvaluation>,
) -> Self
pub fn check_evaluations( self, check_evaluations: impl IntoIterator<Item = AutomaticCheckEvaluation>, ) -> Self
Sets the check_evaluations
field.
Sourcepub fn extend_check_evaluations(
self,
check_evaluations: impl IntoIterator<Item = AutomaticCheckEvaluation>,
) -> Self
pub fn extend_check_evaluations( self, check_evaluations: impl IntoIterator<Item = AutomaticCheckEvaluation>, ) -> Self
Adds values to the check_evaluations
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request