pub fn new(name: &str) -> Self {
        Self {
            name: name.to_string(),
            staked: 0,
            tokens: 20,
            racks: 0,
            reputation: 1,
        }
    }
/// Creates a new Node with the given name.
///
/// # Examples
///
/// ```
/// let node = Node::new("Camper");
/// assert_eq!(node.name, "Camper");
/// ```
Creates a new Node with the given name.
Creates a new Node with the given name .
pub fn new(name: &str) -> Self {
        Self {
            name: name.to_string(),
            staked: 0,
            tokens: 20,
            racks: 0,
            reputation: 1,
        }
    }
pub fn new ( name : & str ) -> Self { Self { name : name . to_string ( ) , staked : 0 , tokens : 20 , racks : 0 , reputation : 1 , } }
Creates a new Node with the given name.
Creates a new Node with the given name .
name
&str
examples
None