pub(crate) fn validate_nats_subject(subject: &str) -> Result<()>
Expand description
Validates that a subject string (e.g. secrets-topic and policy-topic) adheres to the rules and conventions of being a valid NATS subject. This function is specifically for validating subjects to publish to and not intended to be used for validating subjects to subscribe to, as those may include wildcard characters.