#[non_exhaustive]pub struct DataSourceParameter {Show 16 fields
pub param_id: String,
pub display_name: String,
pub description: String,
pub type: Type,
pub required: bool,
pub repeated: bool,
pub validation_regex: String,
pub allowed_values: Vec<String>,
pub min_value: Option<DoubleValue>,
pub max_value: Option<DoubleValue>,
pub fields: Vec<DataSourceParameter>,
pub validation_description: String,
pub validation_help_url: String,
pub immutable: bool,
pub recurse: bool,
pub deprecated: bool,
/* private fields */
}Expand description
A parameter used to define custom fields in a data source definition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.param_id: StringParameter identifier.
display_name: StringParameter display name in the user interface.
description: StringParameter description.
type: TypeParameter type.
required: boolIs parameter required.
repeated: boolDeprecated. This field has no effect.
validation_regex: StringRegular expression which can be used for parameter validation.
allowed_values: Vec<String>All possible values for the parameter.
min_value: Option<DoubleValue>For integer and double values specifies minimum allowed value.
max_value: Option<DoubleValue>For integer and double values specifies maximum allowed value.
fields: Vec<DataSourceParameter>Deprecated. This field has no effect.
validation_description: StringDescription of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.
validation_help_url: StringURL to a help document to further explain the naming requirements.
immutable: boolCannot be changed after initial creation.
recurse: boolDeprecated. This field has no effect.
deprecated: boolIf true, it should not be used in new transfers, and it should not be visible to users.
Implementations§
Source§impl DataSourceParameter
impl DataSourceParameter
pub fn new() -> Self
Sourcepub fn set_param_id<T: Into<String>>(self, v: T) -> Self
pub fn set_param_id<T: Into<String>>(self, v: T) -> Self
Sets the value of param_id.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_required<T: Into<bool>>(self, v: T) -> Self
pub fn set_required<T: Into<bool>>(self, v: T) -> Self
Sets the value of required.
Sourcepub fn set_repeated<T: Into<bool>>(self, v: T) -> Self
pub fn set_repeated<T: Into<bool>>(self, v: T) -> Self
Sets the value of repeated.
Sourcepub fn set_validation_regex<T: Into<String>>(self, v: T) -> Self
pub fn set_validation_regex<T: Into<String>>(self, v: T) -> Self
Sets the value of validation_regex.
Sourcepub fn set_allowed_values<T, V>(self, v: T) -> Self
pub fn set_allowed_values<T, V>(self, v: T) -> Self
Sets the value of allowed_values.
Sourcepub fn set_min_value<T>(self, v: T) -> Selfwhere
T: Into<DoubleValue>,
pub fn set_min_value<T>(self, v: T) -> Selfwhere
T: Into<DoubleValue>,
Sets the value of min_value.
Sourcepub fn set_or_clear_min_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<DoubleValue>,
pub fn set_or_clear_min_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<DoubleValue>,
Sets or clears the value of min_value.
Sourcepub fn set_max_value<T>(self, v: T) -> Selfwhere
T: Into<DoubleValue>,
pub fn set_max_value<T>(self, v: T) -> Selfwhere
T: Into<DoubleValue>,
Sets the value of max_value.
Sourcepub fn set_or_clear_max_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<DoubleValue>,
pub fn set_or_clear_max_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<DoubleValue>,
Sets or clears the value of max_value.
Sourcepub fn set_fields<T, V>(self, v: T) -> Self
pub fn set_fields<T, V>(self, v: T) -> Self
Sets the value of fields.
Sourcepub fn set_validation_description<T: Into<String>>(self, v: T) -> Self
pub fn set_validation_description<T: Into<String>>(self, v: T) -> Self
Sets the value of validation_description.
Sourcepub fn set_validation_help_url<T: Into<String>>(self, v: T) -> Self
pub fn set_validation_help_url<T: Into<String>>(self, v: T) -> Self
Sets the value of validation_help_url.
Sourcepub fn set_immutable<T: Into<bool>>(self, v: T) -> Self
pub fn set_immutable<T: Into<bool>>(self, v: T) -> Self
Sets the value of immutable.
Sourcepub fn set_recurse<T: Into<bool>>(self, v: T) -> Self
pub fn set_recurse<T: Into<bool>>(self, v: T) -> Self
Sets the value of recurse.
Sourcepub fn set_deprecated<T: Into<bool>>(self, v: T) -> Self
pub fn set_deprecated<T: Into<bool>>(self, v: T) -> Self
Sets the value of deprecated.
Trait Implementations§
Source§impl Clone for DataSourceParameter
impl Clone for DataSourceParameter
Source§fn clone(&self) -> DataSourceParameter
fn clone(&self) -> DataSourceParameter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more