pub fn is_validator(&self) -> bool {
        self.networks
            .iter()
            .any(|network| RoleType::Validator == (&network.role).into())
    }
/// Returns true if the node config is for a validator. Otherwise returns false.
Returns true if the node config is for a validator. Otherwise returns false.
Returns true if the node config is for a validator . Otherwise returns false .
pub fn is_validator(&self) -> bool {
        self.networks
            .iter()
            .any(|network| RoleType::Validator == (&network.role).into())
    }
pub fn is_validator ( & self ) -> bool { self . networks . iter ( ) . any ( | network | RoleType :: Validator == ( & network . role ) . into ( ) ) }
Returns true if the node config is for a validator.
Returns true if the node config is for a validator .
&self