validate_topic

Function validate_topic 

Source
pub fn validate_topic(topic: &str) -> Result<(), Error>
Expand description

Validates a topic name according to ADR 0001.

  • Allowed characters: a-z A-Z 0-9 _ - .
  • Must start with: a-z A-Z 0-9 _
  • Cannot be empty, cannot end with ‘.’, max 255 bytes