Skip to main content

require_str

Function require_str 

Source
pub fn require_str(
    map: &Map<String, Value>,
    key: &str,
) -> Result<String, RpcError>
Expand description

Pull a string field from the params map, erroring if missing.