Struct google_api_proto::google::cloud::sql::v1beta4::ReplicaConfiguration
source · pub struct ReplicaConfiguration {
pub kind: String,
pub mysql_replica_configuration: Option<MySqlReplicaConfiguration>,
pub failover_target: Option<bool>,
pub cascadable_replica: Option<bool>,
}
Expand description
Read-replica configuration for connecting to the primary instance.
Fields§
§kind: String
This is always sql#replicaConfiguration
.
mysql_replica_configuration: Option<MySqlReplicaConfiguration>
MySQL specific configuration when replicating from a MySQL on-premises
primary instance. Replication configuration information such as the
username, password, certificates, and keys are not stored in the instance
metadata. The configuration information is used only to set up the
replication connection and is stored by MySQL in a file named
master.info
in the data directory.
failover_target: Option<bool>
Specifies if the replica is the failover target. If the field is set to
true
the replica will be designated as a failover replica. In case the
primary instance fails, the replica instance will be promoted as the new
primary instance. Only one replica can be specified as failover target, and
the replica has to be in different zone with the primary instance.
cascadable_replica: Option<bool>
Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
Trait Implementations§
source§impl Clone for ReplicaConfiguration
impl Clone for ReplicaConfiguration
source§fn clone(&self) -> ReplicaConfiguration
fn clone(&self) -> ReplicaConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplicaConfiguration
impl Debug for ReplicaConfiguration
source§impl Default for ReplicaConfiguration
impl Default for ReplicaConfiguration
source§impl Message for ReplicaConfiguration
impl Message for ReplicaConfiguration
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 ReplicaConfiguration
impl PartialEq for ReplicaConfiguration
source§fn eq(&self, other: &ReplicaConfiguration) -> bool
fn eq(&self, other: &ReplicaConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicaConfiguration
Auto Trait Implementations§
impl Freeze for ReplicaConfiguration
impl RefUnwindSafe for ReplicaConfiguration
impl Send for ReplicaConfiguration
impl Sync for ReplicaConfiguration
impl Unpin for ReplicaConfiguration
impl UnwindSafe for ReplicaConfiguration
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