#[non_exhaustive]pub struct LeaderResponse {
pub ha_enabled: bool,
pub is_self: bool,
pub leader_address: String,
pub leader_cluster_address: String,
pub performance_standby: bool,
}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.ha_enabled: bool§is_self: bool§leader_address: String§leader_cluster_address: String§performance_standby: boolTrait Implementations§
Source§impl Clone for LeaderResponse
impl Clone for LeaderResponse
Source§fn clone(&self) -> LeaderResponse
fn clone(&self) -> LeaderResponse
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 LeaderResponse
impl Debug for LeaderResponse
Source§impl<'de> Deserialize<'de> for LeaderResponse
impl<'de> Deserialize<'de> for LeaderResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LeaderResponse
impl RefUnwindSafe for LeaderResponse
impl Send for LeaderResponse
impl Sync for LeaderResponse
impl Unpin for LeaderResponse
impl UnsafeUnpin for LeaderResponse
impl UnwindSafe for LeaderResponse
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