#[non_exhaustive]pub struct AssessmentTargetBuilder { /* private fields */ }Expand description
A builder for AssessmentTarget.
Implementations§
source§impl AssessmentTargetBuilder
impl AssessmentTargetBuilder
sourcepub fn condition(self, input: Condition) -> Self
pub fn condition(self, input: Condition) -> Self
Condition of an assessment.
This field is required.sourcepub fn set_condition(self, input: Option<Condition>) -> Self
pub fn set_condition(self, input: Option<Condition>) -> Self
Condition of an assessment.
sourcepub fn get_condition(&self) -> &Option<Condition>
pub fn get_condition(&self) -> &Option<Condition>
Condition of an assessment.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Name of an assessment.
This field is required.sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
Values of an assessment.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
Values of an assessment.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
Values of an assessment.
sourcepub fn build(self) -> Result<AssessmentTarget, BuildError>
pub fn build(self) -> Result<AssessmentTarget, BuildError>
Consumes the builder and constructs a AssessmentTarget.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssessmentTargetBuilder
impl Clone for AssessmentTargetBuilder
source§fn clone(&self) -> AssessmentTargetBuilder
fn clone(&self) -> AssessmentTargetBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AssessmentTargetBuilder
impl Debug for AssessmentTargetBuilder
source§impl Default for AssessmentTargetBuilder
impl Default for AssessmentTargetBuilder
source§fn default() -> AssessmentTargetBuilder
fn default() -> AssessmentTargetBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AssessmentTargetBuilder
impl PartialEq for AssessmentTargetBuilder
source§fn eq(&self, other: &AssessmentTargetBuilder) -> bool
fn eq(&self, other: &AssessmentTargetBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssessmentTargetBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AssessmentTargetBuilder
impl Send for AssessmentTargetBuilder
impl Sync for AssessmentTargetBuilder
impl Unpin for AssessmentTargetBuilder
impl UnwindSafe for AssessmentTargetBuilder
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>
Creates a shared type from an unshared type.