pub struct Builder<T>(/* private fields */);
Expand description
A builder for CheckAlert
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: CheckAlertRid) -> Builder<CheckRidStage>
pub fn rid(self, rid: CheckAlertRid) -> Builder<CheckRidStage>
Sets the rid
field.
Source§impl Builder<CheckRidStage>
impl Builder<CheckRidStage>
Sourcepub fn check_rid(self, check_rid: CheckRid) -> Builder<DataReviewRidStage>
pub fn check_rid(self, check_rid: CheckRid) -> Builder<DataReviewRidStage>
Sets the check_rid
field.
Source§impl Builder<DataReviewRidStage>
impl Builder<DataReviewRidStage>
Sourcepub fn data_review_rid(
self,
data_review_rid: DataReviewRid,
) -> Builder<CheckEvaluationRidStage>
pub fn data_review_rid( self, data_review_rid: DataReviewRid, ) -> Builder<CheckEvaluationRidStage>
Sets the data_review_rid
field.
Source§impl Builder<CheckEvaluationRidStage>
impl Builder<CheckEvaluationRidStage>
Sourcepub fn check_evaluation_rid(
self,
check_evaluation_rid: AutomaticCheckEvaluationRid,
) -> Builder<NameStage>
pub fn check_evaluation_rid( self, check_evaluation_rid: AutomaticCheckEvaluationRid, ) -> Builder<NameStage>
Sets the check_evaluation_rid
field.
Source§impl Builder<StartStage>
impl Builder<StartStage>
Sourcepub fn start(self, start: Timestamp) -> Builder<StateStage>
pub fn start(self, start: Timestamp) -> Builder<StateStage>
Sets the start
field.
Source§impl Builder<StateStage>
impl Builder<StateStage>
Sourcepub fn state(self, state: CheckAlertState) -> Builder<PriorityStage>
pub fn state(self, state: CheckAlertState) -> Builder<PriorityStage>
Sets the state
field.
Source§impl Builder<PriorityStage>
impl Builder<PriorityStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: CheckAlertRid) -> Self
pub fn rid(self, rid: CheckAlertRid) -> Self
Sets the rid
field.
Sourcepub fn implementation_index(
self,
implementation_index: impl Into<Option<i32>>,
) -> Self
pub fn implementation_index( self, implementation_index: impl Into<Option<i32>>, ) -> Self
Sets the implementation_index
field.
Sourcepub fn data_review_rid(self, data_review_rid: DataReviewRid) -> Self
pub fn data_review_rid(self, data_review_rid: DataReviewRid) -> Self
Sets the data_review_rid
field.
Sourcepub fn check_evaluation_rid(
self,
check_evaluation_rid: AutomaticCheckEvaluationRid,
) -> Self
pub fn check_evaluation_rid( self, check_evaluation_rid: AutomaticCheckEvaluationRid, ) -> Self
Sets the check_evaluation_rid
field.
Sourcepub fn autogenerated_check_title(
self,
autogenerated_check_title: impl Into<Option<String>>,
) -> Self
pub fn autogenerated_check_title( self, autogenerated_check_title: impl Into<Option<String>>, ) -> Self
Sets the autogenerated_check_title
field.
Sourcepub fn autogenerated_check_description(
self,
autogenerated_check_description: impl Into<Option<String>>,
) -> Self
pub fn autogenerated_check_description( self, autogenerated_check_description: impl Into<Option<String>>, ) -> Self
Sets the autogenerated_check_description
field.
Sourcepub fn insert_assignee_rids(self, assignee_rids: UserRid) -> Self
pub fn insert_assignee_rids(self, assignee_rids: UserRid) -> Self
Adds a value to the assignee_rids
field.
Sourcepub fn assignee_rids(
self,
assignee_rids: impl IntoIterator<Item = UserRid>,
) -> Self
pub fn assignee_rids( self, assignee_rids: impl IntoIterator<Item = UserRid>, ) -> Self
Sets the assignee_rids
field.
Sourcepub fn extend_assignee_rids(
self,
assignee_rids: impl IntoIterator<Item = UserRid>,
) -> Self
pub fn extend_assignee_rids( self, assignee_rids: impl IntoIterator<Item = UserRid>, ) -> Self
Adds values to the assignee_rids
field.
Sourcepub fn state(self, state: CheckAlertState) -> Self
pub fn state(self, state: CheckAlertState) -> Self
Sets the state
field.
Sourcepub fn chart(self, chart: impl Into<Option<VersionedVizId>>) -> Self
pub fn chart(self, chart: impl Into<Option<VersionedVizId>>) -> Self
Sets the chart
field.
Sourcepub fn notebook(self, notebook: impl Into<Option<NotebookRid>>) -> Self
pub fn notebook(self, notebook: impl Into<Option<NotebookRid>>) -> Self
Sets the notebook
field.
Sourcepub fn build(self) -> CheckAlert
pub fn build(self) -> CheckAlert
Consumes the builder, returning a CheckAlert
.
Trait Implementations§
Source§impl From<CheckAlert> for Builder<Complete>
impl From<CheckAlert> for Builder<Complete>
Source§fn from(v: CheckAlert) -> Self
fn from(v: CheckAlert) -> 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