Struct nomad_client_rs::models::raft_server::RaftServer
source · pub struct RaftServer {
pub id: Option<String>,
pub node: Option<String>,
pub address: Option<String>,
pub leader: Option<bool>,
pub voter: Option<bool>,
pub raft_protocol: Option<String>,
}
Fields§
§id: Option<String>
§node: Option<String>
§address: Option<String>
§leader: Option<bool>
§voter: Option<bool>
§raft_protocol: Option<String>
Trait Implementations§
source§impl Clone for RaftServer
impl Clone for RaftServer
source§fn clone(&self) -> RaftServer
fn clone(&self) -> RaftServer
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 RaftServer
impl Debug for RaftServer
source§impl Default for RaftServer
impl Default for RaftServer
source§fn default() -> RaftServer
fn default() -> RaftServer
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RaftServer
impl<'de> Deserialize<'de> for RaftServer
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