[][src]Struct gcp_client::google::cloud::bigquery::datatransfer::v1::DataSourceParameter

pub struct DataSourceParameter {
    pub param_id: String,
    pub display_name: String,
    pub description: String,
    pub type: i32,
    pub required: bool,
    pub repeated: bool,
    pub validation_regex: String,
    pub allowed_values: Vec<String>,
    pub min_value: Option<f64>,
    pub max_value: Option<f64>,
    pub fields: Vec<DataSourceParameter>,
    pub validation_description: String,
    pub validation_help_url: String,
    pub immutable: bool,
    pub recurse: bool,
    pub deprecated: bool,
}

Represents a data source parameter with validation rules, so that parameters can be rendered in the UI. These parameters are given to us by supported data sources, and include all needed information for rendering and validation. Thus, whoever uses this api can decide to generate either generic ui, or custom data source specific forms.

Fields

param_id: String

Parameter identifier.

display_name: String

Parameter display name in the user interface.

description: String

Parameter description.

type: i32

Parameter type.

required: bool

Is parameter required.

repeated: bool

Deprecated. This field has no effect.

validation_regex: String

Regular expression which can be used for parameter validation.

allowed_values: Vec<String>

All possible values for the parameter.

min_value: Option<f64>

For integer and double values specifies minimum allowed value.

max_value: Option<f64>

For integer and double values specifies maxminum allowed value.

fields: Vec<DataSourceParameter>

Deprecated. This field has no effect.

validation_description: String

Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values.

validation_help_url: String

URL to a help document to further explain the naming requirements.

immutable: bool

Cannot be changed after initial creation.

recurse: bool

Deprecated. This field has no effect.

deprecated: bool

If true, it should not be used in new transfers, and it should not be visible to users.

Implementations

impl DataSourceParameter[src]

pub fn type(&self) -> Type[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: Type)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for DataSourceParameter[src]

impl Debug for DataSourceParameter[src]

impl Default for DataSourceParameter[src]

impl Message for DataSourceParameter[src]

impl PartialEq<DataSourceParameter> for DataSourceParameter[src]

impl StructuralPartialEq for DataSourceParameter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]