#[non_exhaustive]pub struct TemplateParameterBuilder { /* private fields */ }
Expand description
A builder for TemplateParameter
.
Implementations§
source§impl TemplateParameterBuilder
impl TemplateParameterBuilder
sourcepub fn parameter_key(self, input: impl Into<String>) -> Self
pub fn parameter_key(self, input: impl Into<String>) -> Self
The name associated with the parameter.
sourcepub fn set_parameter_key(self, input: Option<String>) -> Self
pub fn set_parameter_key(self, input: Option<String>) -> Self
The name associated with the parameter.
sourcepub fn get_parameter_key(&self) -> &Option<String>
pub fn get_parameter_key(&self) -> &Option<String>
The name associated with the parameter.
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The default value associated with the parameter.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The default value associated with the parameter.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The default value associated with the parameter.
sourcepub fn no_echo(self, input: bool) -> Self
pub fn no_echo(self, input: bool) -> Self
Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
sourcepub fn set_no_echo(self, input: Option<bool>) -> Self
pub fn set_no_echo(self, input: Option<bool>) -> Self
Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
sourcepub fn get_no_echo(&self) -> &Option<bool>
pub fn get_no_echo(&self) -> &Option<bool>
Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
User defined description associated with the parameter.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
User defined description associated with the parameter.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
User defined description associated with the parameter.
sourcepub fn build(self) -> TemplateParameter
pub fn build(self) -> TemplateParameter
Consumes the builder and constructs a TemplateParameter
.
Trait Implementations§
source§impl Clone for TemplateParameterBuilder
impl Clone for TemplateParameterBuilder
source§fn clone(&self) -> TemplateParameterBuilder
fn clone(&self) -> TemplateParameterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TemplateParameterBuilder
impl Debug for TemplateParameterBuilder
source§impl Default for TemplateParameterBuilder
impl Default for TemplateParameterBuilder
source§fn default() -> TemplateParameterBuilder
fn default() -> TemplateParameterBuilder
source§impl PartialEq for TemplateParameterBuilder
impl PartialEq for TemplateParameterBuilder
source§fn eq(&self, other: &TemplateParameterBuilder) -> bool
fn eq(&self, other: &TemplateParameterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.