#[non_exhaustive]pub struct PipelineVariableDeclarationBuilder { /* private fields */ }
Expand description
A builder for PipelineVariableDeclaration
.
Implementations§
source§impl PipelineVariableDeclarationBuilder
impl PipelineVariableDeclarationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of a pipeline-level variable.
This field is required.sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The value of a pipeline-level variable.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The value of a pipeline-level variable.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The value of a pipeline-level variable.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn build(self) -> Result<PipelineVariableDeclaration, BuildError>
pub fn build(self) -> Result<PipelineVariableDeclaration, BuildError>
Consumes the builder and constructs a PipelineVariableDeclaration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PipelineVariableDeclarationBuilder
impl Clone for PipelineVariableDeclarationBuilder
source§fn clone(&self) -> PipelineVariableDeclarationBuilder
fn clone(&self) -> PipelineVariableDeclarationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PipelineVariableDeclarationBuilder
impl Default for PipelineVariableDeclarationBuilder
source§fn default() -> PipelineVariableDeclarationBuilder
fn default() -> PipelineVariableDeclarationBuilder
source§impl PartialEq for PipelineVariableDeclarationBuilder
impl PartialEq for PipelineVariableDeclarationBuilder
source§fn eq(&self, other: &PipelineVariableDeclarationBuilder) -> bool
fn eq(&self, other: &PipelineVariableDeclarationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PipelineVariableDeclarationBuilder
Auto Trait Implementations§
impl Freeze for PipelineVariableDeclarationBuilder
impl RefUnwindSafe for PipelineVariableDeclarationBuilder
impl Send for PipelineVariableDeclarationBuilder
impl Sync for PipelineVariableDeclarationBuilder
impl Unpin for PipelineVariableDeclarationBuilder
impl UnwindSafe for PipelineVariableDeclarationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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