#[non_exhaustive]pub struct InstancesDemoteMasterRequest {
pub demote_master_context: Option<DemoteMasterContext>,
/* private fields */
}
Expand description
Database demote primary instance request.
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.demote_master_context: Option<DemoteMasterContext>
Contains details about the demoteMaster operation.
Implementations§
Source§impl InstancesDemoteMasterRequest
impl InstancesDemoteMasterRequest
pub fn new() -> Self
Sourcepub fn set_demote_master_context<T>(self, v: T) -> Selfwhere
T: Into<DemoteMasterContext>,
pub fn set_demote_master_context<T>(self, v: T) -> Selfwhere
T: Into<DemoteMasterContext>,
Sets the value of demote_master_context.
Sourcepub fn set_or_clear_demote_master_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<DemoteMasterContext>,
pub fn set_or_clear_demote_master_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<DemoteMasterContext>,
Sets or clears the value of demote_master_context.
Trait Implementations§
Source§impl Clone for InstancesDemoteMasterRequest
impl Clone for InstancesDemoteMasterRequest
Source§fn clone(&self) -> InstancesDemoteMasterRequest
fn clone(&self) -> InstancesDemoteMasterRequest
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 InstancesDemoteMasterRequest
impl Debug for InstancesDemoteMasterRequest
Source§impl Default for InstancesDemoteMasterRequest
impl Default for InstancesDemoteMasterRequest
Source§fn default() -> InstancesDemoteMasterRequest
fn default() -> InstancesDemoteMasterRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstancesDemoteMasterRequest
impl PartialEq for InstancesDemoteMasterRequest
Source§fn eq(&self, other: &InstancesDemoteMasterRequest) -> bool
fn eq(&self, other: &InstancesDemoteMasterRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InstancesDemoteMasterRequest
Auto Trait Implementations§
impl Freeze for InstancesDemoteMasterRequest
impl RefUnwindSafe for InstancesDemoteMasterRequest
impl Send for InstancesDemoteMasterRequest
impl Sync for InstancesDemoteMasterRequest
impl Unpin for InstancesDemoteMasterRequest
impl UnwindSafe for InstancesDemoteMasterRequest
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