(mut env: JNIEnv<'a>, _: JClass, cedar_schema: JString<'a>)
| 1117 | |
| 1118 | #[jni_fn("com.cedarpolicy.model.schema.Schema")] |
| 1119 | pub fn cedarToJsonJni<'a>(mut env: JNIEnv<'a>, _: JClass, cedar_schema: JString<'a>) -> jvalue { |
| 1120 | match get_json_schema_internal(&mut env, cedar_schema) { |
| 1121 | Ok(val) => val.as_jni(), |
| 1122 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | pub fn get_json_schema_internal<'a>( |
| 1127 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected