pub struct IoArgoprojWorkflowV1alpha1ParameterBuilder { /* private fields */ }Expand description
Builder for IoArgoprojWorkflowV1alpha1Parameter.
Implementations§
Source§impl IoArgoprojWorkflowV1alpha1ParameterBuilder
impl IoArgoprojWorkflowV1alpha1ParameterBuilder
Sourcepub fn default(&mut self, value: Option<String>) -> &mut Self
pub fn default(&mut self, value: Option<String>) -> &mut Self
Default is the default value to use for an input parameter if a value was not supplied
Sourcepub fn description(&mut self, value: Option<String>) -> &mut Self
pub fn description(&mut self, value: Option<String>) -> &mut Self
Description is the parameter description
Sourcepub fn enum_(&mut self, value: Vec<String>) -> &mut Self
pub fn enum_(&mut self, value: Vec<String>) -> &mut Self
Enum holds a list of string values to choose from, for the actual value of the parameter
Sourcepub fn global_name(&mut self, value: Option<String>) -> &mut Self
pub fn global_name(&mut self, value: Option<String>) -> &mut Self
GlobalName exports an output parameter to the global scope, making it available as ’{{io.argoproj.workflow.v1alpha1.outputs.parameters.XXXX}} and in workflow.status.outputs.parameters
Sourcepub fn value(&mut self, value: Option<String>) -> &mut Self
pub fn value(&mut self, value: Option<String>) -> &mut Self
Value is the literal value to use for the parameter. If specified in the context of an input parameter, the value takes precedence over any passed values
Sourcepub fn value_from(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ValueFrom>,
) -> &mut Self
pub fn value_from( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ValueFrom>, ) -> &mut Self
ValueFrom is the source for the output parameter’s value
Sourcepub fn build(
&self,
) -> Result<IoArgoprojWorkflowV1alpha1Parameter, IoArgoprojWorkflowV1alpha1ParameterBuilderError>
pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1Parameter, IoArgoprojWorkflowV1alpha1ParameterBuilderError>
Builds a new IoArgoprojWorkflowV1alpha1Parameter.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl Clone for IoArgoprojWorkflowV1alpha1ParameterBuilder
Source§fn clone(&self) -> IoArgoprojWorkflowV1alpha1ParameterBuilder
fn clone(&self) -> IoArgoprojWorkflowV1alpha1ParameterBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl RefUnwindSafe for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl Send for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl Sync for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl Unpin for IoArgoprojWorkflowV1alpha1ParameterBuilder
impl UnwindSafe for IoArgoprojWorkflowV1alpha1ParameterBuilder
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