pub struct SupportedDatabaseFlag {
pub name: String,
pub flag_name: String,
pub value_type: i32,
pub accepts_multiple_values: bool,
pub supported_db_versions: Vec<i32>,
pub requires_db_restart: bool,
pub restrictions: Option<Restrictions>,
}
Expand description
SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.
Fields§
§name: String
The name of the flag resource, following Google Cloud conventions, e.g.:
- projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.
flag_name: String
The name of the database flag, e.g. “max_allowed_packets”. The is a possibly key for the Instance.database_flags map field.
value_type: i32
§accepts_multiple_values: bool
Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
supported_db_versions: Vec<i32>
Major database engine versions for which this flag is supported.
requires_db_restart: bool
Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO’s).
restrictions: Option<Restrictions>
The restrictions on the flag value per type.
Implementations§
Source§impl SupportedDatabaseFlag
impl SupportedDatabaseFlag
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.
Sourcepub fn supported_db_versions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DatabaseVersion>>
pub fn supported_db_versions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DatabaseVersion>>
Returns an iterator which yields the valid enum values contained in supported_db_versions
.
Sourcepub fn push_supported_db_versions(&mut self, value: DatabaseVersion)
pub fn push_supported_db_versions(&mut self, value: DatabaseVersion)
Appends the provided enum value to supported_db_versions
.
Trait Implementations§
Source§impl Clone for SupportedDatabaseFlag
impl Clone for SupportedDatabaseFlag
Source§fn clone(&self) -> SupportedDatabaseFlag
fn clone(&self) -> SupportedDatabaseFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SupportedDatabaseFlag
impl Debug for SupportedDatabaseFlag
Source§impl Default for SupportedDatabaseFlag
impl Default for SupportedDatabaseFlag
Source§impl Message for SupportedDatabaseFlag
impl Message for SupportedDatabaseFlag
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 SupportedDatabaseFlag
impl PartialEq for SupportedDatabaseFlag
impl StructuralPartialEq for SupportedDatabaseFlag
Auto Trait Implementations§
impl Freeze for SupportedDatabaseFlag
impl RefUnwindSafe for SupportedDatabaseFlag
impl Send for SupportedDatabaseFlag
impl Sync for SupportedDatabaseFlag
impl Unpin for SupportedDatabaseFlag
impl UnwindSafe for SupportedDatabaseFlag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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