pub fn validate_broker_url(url: &str) -> Result<String>Expand description
Validate and normalize broker URL.
Ensures the broker URL has a valid scheme and normalizes the format.
§Errors
Returns an error if the URL is invalid or has an unsupported scheme.
§Examples
assert!(validate_broker_url("redis://localhost:6379").is_ok());
assert!(validate_broker_url("postgresql://localhost/db").is_ok());
assert!(validate_broker_url("invalid").is_err());