#[non_exhaustive]pub struct StepAttributeCapabilityBuilder { /* private fields */ }Expand description
A builder for StepAttributeCapability.
Implementations§
source§impl StepAttributeCapabilityBuilder
impl StepAttributeCapabilityBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the step attribute.
This field is required.sourcepub fn any_of(self, input: impl Into<String>) -> Self
pub fn any_of(self, input: impl Into<String>) -> Self
Appends an item to any_of.
To override the contents of this collection use set_any_of.
Requires any of the step attributes in a given list.
sourcepub fn set_any_of(self, input: Option<Vec<String>>) -> Self
pub fn set_any_of(self, input: Option<Vec<String>>) -> Self
Requires any of the step attributes in a given list.
sourcepub fn get_any_of(&self) -> &Option<Vec<String>>
pub fn get_any_of(&self) -> &Option<Vec<String>>
Requires any of the step attributes in a given list.
sourcepub fn all_of(self, input: impl Into<String>) -> Self
pub fn all_of(self, input: impl Into<String>) -> Self
Appends an item to all_of.
To override the contents of this collection use set_all_of.
Requires all of the step attribute values.
sourcepub fn set_all_of(self, input: Option<Vec<String>>) -> Self
pub fn set_all_of(self, input: Option<Vec<String>>) -> Self
Requires all of the step attribute values.
sourcepub fn get_all_of(&self) -> &Option<Vec<String>>
pub fn get_all_of(&self) -> &Option<Vec<String>>
Requires all of the step attribute values.
sourcepub fn build(self) -> Result<StepAttributeCapability, BuildError>
pub fn build(self) -> Result<StepAttributeCapability, BuildError>
Consumes the builder and constructs a StepAttributeCapability.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StepAttributeCapabilityBuilder
impl Clone for StepAttributeCapabilityBuilder
source§fn clone(&self) -> StepAttributeCapabilityBuilder
fn clone(&self) -> StepAttributeCapabilityBuilder
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 Default for StepAttributeCapabilityBuilder
impl Default for StepAttributeCapabilityBuilder
source§fn default() -> StepAttributeCapabilityBuilder
fn default() -> StepAttributeCapabilityBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for StepAttributeCapabilityBuilder
impl PartialEq for StepAttributeCapabilityBuilder
source§fn eq(&self, other: &StepAttributeCapabilityBuilder) -> bool
fn eq(&self, other: &StepAttributeCapabilityBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StepAttributeCapabilityBuilder
Auto Trait Implementations§
impl Freeze for StepAttributeCapabilityBuilder
impl RefUnwindSafe for StepAttributeCapabilityBuilder
impl Send for StepAttributeCapabilityBuilder
impl Sync for StepAttributeCapabilityBuilder
impl Unpin for StepAttributeCapabilityBuilder
impl UnwindSafe for StepAttributeCapabilityBuilder
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.