#[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 ==
.impl StructuralPartialEq for TemplateParameterBuilder
Auto Trait Implementations§
impl Freeze for TemplateParameterBuilder
impl RefUnwindSafe for TemplateParameterBuilder
impl Send for TemplateParameterBuilder
impl Sync for TemplateParameterBuilder
impl Unpin for TemplateParameterBuilder
impl UnwindSafe for TemplateParameterBuilder
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