pub struct RaftConfiguration {
pub index: Option<i32>,
pub servers: Option<Vec<RaftServer>>,
}
Fields§
§index: Option<i32>
§servers: Option<Vec<RaftServer>>
Trait Implementations§
source§impl Clone for RaftConfiguration
impl Clone for RaftConfiguration
source§fn clone(&self) -> RaftConfiguration
fn clone(&self) -> RaftConfiguration
Returns a copy 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 RaftConfiguration
impl Debug for RaftConfiguration
source§impl Default for RaftConfiguration
impl Default for RaftConfiguration
source§fn default() -> RaftConfiguration
fn default() -> RaftConfiguration
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RaftConfiguration
impl<'de> Deserialize<'de> for RaftConfiguration
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
source§impl PartialEq<RaftConfiguration> for RaftConfiguration
impl PartialEq<RaftConfiguration> for RaftConfiguration
source§fn eq(&self, other: &RaftConfiguration) -> bool
fn eq(&self, other: &RaftConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RaftConfiguration
impl Serialize for RaftConfiguration
impl StructuralPartialEq for RaftConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for RaftConfiguration
impl Send for RaftConfiguration
impl Sync for RaftConfiguration
impl Unpin for RaftConfiguration
impl UnwindSafe for RaftConfiguration
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