Struct google_api_proto::google::cloud::connectors::v1::ConfigVariableTemplate
source · pub struct ConfigVariableTemplate {
pub key: String,
pub value_type: i32,
pub display_name: String,
pub description: String,
pub validation_regex: String,
pub required: bool,
pub role_grant: Option<RoleGrant>,
pub enum_options: Vec<EnumOption>,
pub authorization_code_link: Option<AuthorizationCodeLink>,
pub state: i32,
pub is_advanced: bool,
}
Expand description
ConfigVariableTemplate provides metadata about a ConfigVariable
that is
used in a Connection.
Fields§
§key: String
Key of the config variable.
value_type: i32
Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation.
display_name: String
Display name of the parameter.
description: String
Description.
validation_regex: String
Regular expression in RE2 syntax used for validating the value
of a
ConfigVariable
.
required: bool
Flag represents that this ConfigVariable
must be provided for a
connection.
role_grant: Option<RoleGrant>
Role grant configuration for the config variable.
enum_options: Vec<EnumOption>
Enum options. To be populated if ValueType
is ENUM
Authorization code link options. To be populated if ValueType
is
AUTHORIZATION_CODE
state: i32
State of the config variable.
is_advanced: bool
Indicates if current template is part of advanced settings
Implementations§
source§impl ConfigVariableTemplate
impl ConfigVariableTemplate
sourcepub fn value_type(&self) -> ValueType
pub fn value_type(&self) -> ValueType
Returns the enum value of value_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_value_type(&mut self, value: ValueType)
pub fn set_value_type(&mut self, value: ValueType)
Sets value_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ConfigVariableTemplate
impl Clone for ConfigVariableTemplate
source§fn clone(&self) -> ConfigVariableTemplate
fn clone(&self) -> ConfigVariableTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigVariableTemplate
impl Debug for ConfigVariableTemplate
source§impl Default for ConfigVariableTemplate
impl Default for ConfigVariableTemplate
source§impl Message for ConfigVariableTemplate
impl Message for ConfigVariableTemplate
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConfigVariableTemplate
impl PartialEq for ConfigVariableTemplate
source§fn eq(&self, other: &ConfigVariableTemplate) -> bool
fn eq(&self, other: &ConfigVariableTemplate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfigVariableTemplate
Auto Trait Implementations§
impl Freeze for ConfigVariableTemplate
impl RefUnwindSafe for ConfigVariableTemplate
impl Send for ConfigVariableTemplate
impl Sync for ConfigVariableTemplate
impl Unpin for ConfigVariableTemplate
impl UnwindSafe for ConfigVariableTemplate
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request