(dst: &mut ffi::zr_debug_config_t, obj: &JsObject)
| 98 | } |
| 99 | |
| 100 | fn apply_debug_cfg(dst: &mut ffi::zr_debug_config_t, obj: &JsObject) -> ParseResult<()> { |
| 101 | if let Some(value) = js_u8_bool(obj, "enabled", "enabled")? { |
| 102 | dst.enabled = value as u32; |
| 103 | } |
| 104 | if let Some(value) = js_u32(obj, "ringCapacity", "ring_capacity")? { |
| 105 | dst.ring_capacity = value; |
| 106 | } |
| 107 | if let Some(value) = js_u32(obj, "minSeverity", "min_severity")? { |
| 108 | dst.min_severity = value; |
| 109 | } |
| 110 | if let Some(value) = js_u32(obj, "categoryMask", "category_mask")? { |
| 111 | dst.category_mask = value; |
| 112 | } |
| 113 | if let Some(value) = js_u8_bool(obj, "captureRawEvents", "capture_raw_events")? { |
| 114 | dst.capture_raw_events = value as u32; |
| 115 | } |
| 116 | if let Some(value) = js_u8_bool(obj, "captureDrawlistBytes", "capture_drawlist_bytes")? { |
| 117 | dst.capture_drawlist_bytes = value as u32; |
| 118 | } |
| 119 | Ok(()) |
| 120 | } |
| 121 | |
| 122 | fn apply_debug_query(dst: &mut ffi::zr_debug_query_t, obj: &JsObject) -> ParseResult<()> { |
| 123 | if let Some(value) = js_u64(obj, "minRecordId", "min_record_id")? { |
no test coverage detected