#[non_exhaustive]pub struct TemplateParameterConfiguration {
pub type: Option<TemplateParameterDataType>,
pub default_value: Option<String>,
}Expand description
The configuration of a job template parameter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: Option<TemplateParameterDataType>The type of the job template parameter. Allowed values are: ‘STRING’, ‘NUMBER’.
default_value: Option<String>The default value for the job template parameter.
Implementations§
source§impl TemplateParameterConfiguration
impl TemplateParameterConfiguration
sourcepub fn type(&self) -> Option<&TemplateParameterDataType>
pub fn type(&self) -> Option<&TemplateParameterDataType>
The type of the job template parameter. Allowed values are: ‘STRING’, ‘NUMBER’.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value for the job template parameter.
source§impl TemplateParameterConfiguration
impl TemplateParameterConfiguration
sourcepub fn builder() -> TemplateParameterConfigurationBuilder
pub fn builder() -> TemplateParameterConfigurationBuilder
Creates a new builder-style object to manufacture TemplateParameterConfiguration.
Trait Implementations§
source§impl Clone for TemplateParameterConfiguration
impl Clone for TemplateParameterConfiguration
source§fn clone(&self) -> TemplateParameterConfiguration
fn clone(&self) -> TemplateParameterConfiguration
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 PartialEq<TemplateParameterConfiguration> for TemplateParameterConfiguration
impl PartialEq<TemplateParameterConfiguration> for TemplateParameterConfiguration
source§fn eq(&self, other: &TemplateParameterConfiguration) -> bool
fn eq(&self, other: &TemplateParameterConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TemplateParameterConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for TemplateParameterConfiguration
impl Send for TemplateParameterConfiguration
impl Sync for TemplateParameterConfiguration
impl Unpin for TemplateParameterConfiguration
impl UnwindSafe for TemplateParameterConfiguration
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