[][src]Struct google_sqladmin1_beta4::DemoteMasterContext

pub struct DemoteMasterContext {
    pub kind: Option<String>,
    pub master_instance_name: Option<String>,
    pub verify_gtid_consistency: Option<bool>,
    pub replica_configuration: Option<DemoteMasterConfiguration>,
}

Database instance demote master context.

This type is not used in any activity, and only used as part of another schema.

Fields

kind: Option<String>

This is always sql#demoteMasterContext.

master_instance_name: Option<String>

The name of the instance which will act as on-premises master in the replication setup.

verify_gtid_consistency: Option<bool>

Verify GTID consistency for demote operation. Default value: True. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.

replica_configuration: Option<DemoteMasterConfiguration>

Configuration specific to read-replicas replicating from the on-premises master.

Trait Implementations

impl Part for DemoteMasterContext[src]

impl Default for DemoteMasterContext[src]

impl Clone for DemoteMasterContext[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for DemoteMasterContext[src]

impl Serialize for DemoteMasterContext[src]

impl<'de> Deserialize<'de> for DemoteMasterContext[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]