pub struct ElectMasterResponse {
pub success: bool,
pub error: Option<String>,
pub master_broker: Option<String>,
pub master_addr: Option<SocketAddr>,
}Expand description
Elect master response
Fields§
§success: boolSuccess flag
error: Option<String>Error message if failed
master_broker: Option<String>Master broker name
master_addr: Option<SocketAddr>Master broker address
Trait Implementations§
Source§impl Clone for ElectMasterResponse
impl Clone for ElectMasterResponse
Source§fn clone(&self) -> ElectMasterResponse
fn clone(&self) -> ElectMasterResponse
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 ElectMasterResponse
impl Debug for ElectMasterResponse
Source§impl<'de> Deserialize<'de> for ElectMasterResponse
impl<'de> Deserialize<'de> for ElectMasterResponse
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 ElectMasterResponse
impl RefUnwindSafe for ElectMasterResponse
impl Send for ElectMasterResponse
impl Sync for ElectMasterResponse
impl Unpin for ElectMasterResponse
impl UnwindSafe for ElectMasterResponse
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