(mut env: JNIEnv<'a>, _: JClass, json_schema: JString<'a>)
| 1084 | } |
| 1085 | #[jni_fn("com.cedarpolicy.model.schema.Schema")] |
| 1086 | pub fn jsonToCedarJni<'a>(mut env: JNIEnv<'a>, _: JClass, json_schema: JString<'a>) -> jvalue { |
| 1087 | match get_cedar_schema_internal(&mut env, json_schema) { |
| 1088 | Ok(val) => val.as_jni(), |
| 1089 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 1090 | } |
| 1091 | } |
| 1092 | pub fn get_cedar_schema_internal<'a>( |
| 1093 | env: &mut JNIEnv<'a>, |
| 1094 | schema_json_jstr: JString<'a>, |
nothing calls this directly
no test coverage detected