#[non_exhaustive]pub struct AssessmentControlBuilder { /* private fields */ }Expand description
A builder for AssessmentControl.
Implementations§
source§impl AssessmentControlBuilder
impl AssessmentControlBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the control.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the control.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the control.
sourcepub fn status(self, input: ControlStatus) -> Self
pub fn status(self, input: ControlStatus) -> Self
The status of the control.
sourcepub fn set_status(self, input: Option<ControlStatus>) -> Self
pub fn set_status(self, input: Option<ControlStatus>) -> Self
The status of the control.
sourcepub fn get_status(&self) -> &Option<ControlStatus>
pub fn get_status(&self) -> &Option<ControlStatus>
The status of the control.
sourcepub fn response(self, input: ControlResponse) -> Self
pub fn response(self, input: ControlResponse) -> Self
The response of the control.
sourcepub fn set_response(self, input: Option<ControlResponse>) -> Self
pub fn set_response(self, input: Option<ControlResponse>) -> Self
The response of the control.
sourcepub fn get_response(&self) -> &Option<ControlResponse>
pub fn get_response(&self) -> &Option<ControlResponse>
The response of the control.
sourcepub fn comments(self, input: ControlComment) -> Self
pub fn comments(self, input: ControlComment) -> Self
Appends an item to comments.
To override the contents of this collection use set_comments.
The list of comments that's attached to the control.
sourcepub fn set_comments(self, input: Option<Vec<ControlComment>>) -> Self
pub fn set_comments(self, input: Option<Vec<ControlComment>>) -> Self
The list of comments that's attached to the control.
sourcepub fn get_comments(&self) -> &Option<Vec<ControlComment>>
pub fn get_comments(&self) -> &Option<Vec<ControlComment>>
The list of comments that's attached to the control.
sourcepub fn evidence_sources(self, input: impl Into<String>) -> Self
pub fn evidence_sources(self, input: impl Into<String>) -> Self
Appends an item to evidence_sources.
To override the contents of this collection use set_evidence_sources.
The list of data sources for the evidence.
sourcepub fn set_evidence_sources(self, input: Option<Vec<String>>) -> Self
pub fn set_evidence_sources(self, input: Option<Vec<String>>) -> Self
The list of data sources for the evidence.
sourcepub fn get_evidence_sources(&self) -> &Option<Vec<String>>
pub fn get_evidence_sources(&self) -> &Option<Vec<String>>
The list of data sources for the evidence.
sourcepub fn evidence_count(self, input: i32) -> Self
pub fn evidence_count(self, input: i32) -> Self
The amount of evidence that's collected for the control.
sourcepub fn set_evidence_count(self, input: Option<i32>) -> Self
pub fn set_evidence_count(self, input: Option<i32>) -> Self
The amount of evidence that's collected for the control.
sourcepub fn get_evidence_count(&self) -> &Option<i32>
pub fn get_evidence_count(&self) -> &Option<i32>
The amount of evidence that's collected for the control.
sourcepub fn assessment_report_evidence_count(self, input: i32) -> Self
pub fn assessment_report_evidence_count(self, input: i32) -> Self
The amount of evidence in the assessment report.
sourcepub fn set_assessment_report_evidence_count(self, input: Option<i32>) -> Self
pub fn set_assessment_report_evidence_count(self, input: Option<i32>) -> Self
The amount of evidence in the assessment report.
sourcepub fn get_assessment_report_evidence_count(&self) -> &Option<i32>
pub fn get_assessment_report_evidence_count(&self) -> &Option<i32>
The amount of evidence in the assessment report.
sourcepub fn build(self) -> AssessmentControl
pub fn build(self) -> AssessmentControl
Consumes the builder and constructs a AssessmentControl.
Trait Implementations§
source§impl Clone for AssessmentControlBuilder
impl Clone for AssessmentControlBuilder
source§fn clone(&self) -> AssessmentControlBuilder
fn clone(&self) -> AssessmentControlBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssessmentControlBuilder
impl Debug for AssessmentControlBuilder
source§impl Default for AssessmentControlBuilder
impl Default for AssessmentControlBuilder
source§fn default() -> AssessmentControlBuilder
fn default() -> AssessmentControlBuilder
source§impl PartialEq for AssessmentControlBuilder
impl PartialEq for AssessmentControlBuilder
source§fn eq(&self, other: &AssessmentControlBuilder) -> bool
fn eq(&self, other: &AssessmentControlBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssessmentControlBuilder
Auto Trait Implementations§
impl Freeze for AssessmentControlBuilder
impl RefUnwindSafe for AssessmentControlBuilder
impl Send for AssessmentControlBuilder
impl Sync for AssessmentControlBuilder
impl Unpin for AssessmentControlBuilder
impl UnwindSafe for AssessmentControlBuilder
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more