The regex used to validate the schema namespace. The default implementation uses the Avro specified regex.
(&self)
| 138 | /// |
| 139 | /// The default implementation uses the Avro specified regex. |
| 140 | fn regex(&self) -> &'static Regex { |
| 141 | static NAMESPACE_ONCE: OnceLock<Regex> = OnceLock::new(); |
| 142 | NAMESPACE_ONCE.get_or_init(|| { |
| 143 | Regex::new(r"^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)?$").unwrap() |
| 144 | }) |
| 145 | } |
| 146 | |
| 147 | /// Validates a schema namespace. |
| 148 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected