This is an example, but compilation exceptions may occur
cannot borrow *item as mutable, as it is behind a & reference item is a & reference, so the data it refers to cannot be borrowed as mutablerustcClick for full compiler diagnostic
registry_param.rs(42, 18): consider changing this binding's type to be: &mut Vec<RegistryRam>
You didn't show where the error appears. Please, don't paste the output mangled by your IDE; paste the output of cargo check verbatim, including line numbers and span indicators, as a code block (so that its formatting is not lost).
However, I guess that the problem occurs on the line
item.push(self.to_registry_ram())
and that's because you used
server_table.get(&self.server_name)
If you had read the documentation of HashMap, you would have known that .get()always returns an immutable reference to the value, even if you have a mutable reference to the HashMap. You will need to use