cdrs-tokio 8.1.8

Async Cassandra DB driver written in Rust
Documentation
use derivative::Derivative;
use derive_more::Constructor;
use std::net::SocketAddr;
use uuid::Uuid;

use crate::cluster::Murmur3Token;

/// Information about a node.
#[derive(Constructor, Clone, Derivative)]
#[derivative(Debug)]
pub struct NodeInfo {
    pub host_id: Uuid,
    pub broadcast_rpc_address: SocketAddr,
    pub broadcast_address: Option<SocketAddr>,
    pub datacenter: String,
    #[derivative(Debug = "ignore")]
    pub tokens: Vec<Murmur3Token>,
    pub rack: String,
}