pub fn validate_envelope(value: &Value) -> Result<(), &'static str>
Validates a raw JSON value as a conforming JSON-RPC 2.0 envelope.