This is completely wrong. Do not build a completely new way to deploy nats. Just use the existing deployment method in the module and create a score on top of the same method for the simple deployment.
The feature is correct but the implementation of the nats node primitive is wrong, see previous comment.
Delete that, hardcoded subuids/gids is a bug waiting to happen when multiple users on the same machine
MUCH better but still dumb. Why do we have to do mode from mode.as_str() ????
Instead of doing those ugly matches that depend on strings that we don't control here, implement From &str traits for those structs HealthCheckHttpMethod and the other similar above and below HealthcheckType and HealthcheckSsl and probably others around here. This is poor rust, feels like crappy python by a first year programmer. Do better.