[−][src]Function sabre_sdk::execute_smart_permission_entrypoint
pub unsafe fn execute_smart_permission_entrypoint<F>(
roles_ptr: WasmPtrList,
org_id_ptr: WasmPtr,
public_key_ptr: WasmPtr,
payload_ptr: WasmPtr,
has_permission: F
) -> i32 where
F: Fn(Request) -> Result<bool, WasmSdkError>,
Error Codes:
-1: Failed to deserialize roles -2: Failed to deserialize org_id -3: Failed to deserialize public_key -4: Failed to deserialize payload -5: Failed to execute smart permission -6: StateSetError -7: AllocError -8: MemoryRetrievalError -9: Utf8EncodeError -10: ProtobufError