Struct gapi_grpc::google::cloud::channel::v1::ParameterDefinition[][src]

pub struct ParameterDefinition {
    pub name: String,
    pub parameter_type: i32,
    pub min_value: Option<Value>,
    pub max_value: Option<Value>,
    pub allowed_values: Vec<Value>,
    pub optional: bool,
}

Parameter’s definition. Specifies what parameter is required to use the current Offer to purchase.

Fields

name: String

Name of the parameter.

parameter_type: i32

Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

min_value: Option<Value>

Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

max_value: Option<Value>

Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

allowed_values: Vec<Value>

If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, …] Applicable to STRING parameter type.

optional: bool

If set to true, parameter is optional to purchase this Offer.

Implementations

impl ParameterDefinition[src]

pub fn parameter_type(&self) -> ParameterType[src]

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

pub fn set_parameter_type(&mut self, value: ParameterType)[src]

Sets parameter_type to the provided enum value.

Trait Implementations

impl Clone for ParameterDefinition[src]

impl Debug for ParameterDefinition[src]

impl Default for ParameterDefinition[src]

impl Message for ParameterDefinition[src]

impl PartialEq<ParameterDefinition> for ParameterDefinition[src]

impl StructuralPartialEq for ParameterDefinition[src]

Auto Trait Implementations

impl RefUnwindSafe for ParameterDefinition

impl Send for ParameterDefinition

impl Sync for ParameterDefinition

impl Unpin for ParameterDefinition

impl UnwindSafe for ParameterDefinition

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]