pub struct LegacyClusterNodeResult {
pub id: String,
pub preferred_endpoint: String,
pub ip: String,
pub hostname: Option<String>,
pub port: u16,
}Expand description
Cluster node result for the cluster_slots command.
Fields§
§id: StringThe node ID
preferred_endpoint: StringPreferred endpoint (Either an IP address, hostname, or NULL)
ip: StringThe IP address to send requests to for this node.
hostname: Option<String>When a node has an announced hostname but the primary endpoint is not set to hostname.
port: u16Port number
Trait Implementations§
Source§impl Debug for LegacyClusterNodeResult
impl Debug for LegacyClusterNodeResult
Source§impl<'de> Deserialize<'de> for LegacyClusterNodeResult
impl<'de> Deserialize<'de> for LegacyClusterNodeResult
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 LegacyClusterNodeResult
impl RefUnwindSafe for LegacyClusterNodeResult
impl Send for LegacyClusterNodeResult
impl Sync for LegacyClusterNodeResult
impl Unpin for LegacyClusterNodeResult
impl UnwindSafe for LegacyClusterNodeResult
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