#[non_exhaustive]pub struct DemoteContext {
pub kind: String,
pub source_representative_instance_name: String,
/* private fields */
}
Expand description
This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: String
This is always sql#demoteContext
.
source_representative_instance_name: String
Required. The name of the instance which acts as the on-premises primary instance in the replication setup.
Implementations§
Source§impl DemoteContext
impl DemoteContext
Trait Implementations§
Source§impl Clone for DemoteContext
impl Clone for DemoteContext
Source§fn clone(&self) -> DemoteContext
fn clone(&self) -> DemoteContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DemoteContext
impl Debug for DemoteContext
Source§impl Default for DemoteContext
impl Default for DemoteContext
Source§fn default() -> DemoteContext
fn default() -> DemoteContext
Returns the “default value” for a type. Read more
Source§impl Message for DemoteContext
impl Message for DemoteContext
Source§impl PartialEq for DemoteContext
impl PartialEq for DemoteContext
impl StructuralPartialEq for DemoteContext
Auto Trait Implementations§
impl Freeze for DemoteContext
impl RefUnwindSafe for DemoteContext
impl Send for DemoteContext
impl Sync for DemoteContext
impl Unpin for DemoteContext
impl UnwindSafe for DemoteContext
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
Mutably borrows from an owned value. Read more