pub fn validate_required(field: &str, value: &str) -> Result<()>Available on non-WebAssembly only.
Expand description
Validate that a value is not empty
ยงExample
use pmcp::server::validation::validate_required;
validate_required("username", "john_doe")?;