#[non_exhaustive]pub struct InstancesFailoverRequest {
pub failover_context: Option<FailoverContext>,
/* private fields */
}
Expand description
Instance failover 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.failover_context: Option<FailoverContext>
Failover Context.
Implementations§
Source§impl InstancesFailoverRequest
impl InstancesFailoverRequest
pub fn new() -> Self
Sourcepub fn set_failover_context<T>(self, v: T) -> Selfwhere
T: Into<FailoverContext>,
pub fn set_failover_context<T>(self, v: T) -> Selfwhere
T: Into<FailoverContext>,
Sets the value of failover_context.
Sourcepub fn set_or_clear_failover_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailoverContext>,
pub fn set_or_clear_failover_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<FailoverContext>,
Sets or clears the value of failover_context.
Trait Implementations§
Source§impl Clone for InstancesFailoverRequest
impl Clone for InstancesFailoverRequest
Source§fn clone(&self) -> InstancesFailoverRequest
fn clone(&self) -> InstancesFailoverRequest
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 InstancesFailoverRequest
impl Debug for InstancesFailoverRequest
Source§impl Default for InstancesFailoverRequest
impl Default for InstancesFailoverRequest
Source§fn default() -> InstancesFailoverRequest
fn default() -> InstancesFailoverRequest
Returns the “default value” for a type. Read more
Source§impl Message for InstancesFailoverRequest
impl Message for InstancesFailoverRequest
Source§impl PartialEq for InstancesFailoverRequest
impl PartialEq for InstancesFailoverRequest
impl StructuralPartialEq for InstancesFailoverRequest
Auto Trait Implementations§
impl Freeze for InstancesFailoverRequest
impl RefUnwindSafe for InstancesFailoverRequest
impl Send for InstancesFailoverRequest
impl Sync for InstancesFailoverRequest
impl Unpin for InstancesFailoverRequest
impl UnwindSafe for InstancesFailoverRequest
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