(
State(state): State<AppState>,
Path(udid): Path<String>,
Query(query): Query<AccessibilityTreeQuery>,
)
| 3293 | } |
| 3294 | |
| 3295 | async fn accessibility_tree( |
| 3296 | State(state): State<AppState>, |
| 3297 | Path(udid): Path<String>, |
| 3298 | Query(query): Query<AccessibilityTreeQuery>, |
| 3299 | ) -> Result<Json<Value>, AppError> { |
| 3300 | let snapshot = cached_accessibility_tree_value( |
| 3301 | state, |
| 3302 | udid, |
| 3303 | query.source.as_deref(), |
| 3304 | query.max_depth, |
| 3305 | query.include_hidden.unwrap_or(false), |
| 3306 | query.interactive_only.unwrap_or(false), |
| 3307 | ) |
| 3308 | .await?; |
| 3309 | Ok(json(snapshot)) |
| 3310 | } |
| 3311 | |
| 3312 | async fn cached_accessibility_tree_value( |
| 3313 | state: AppState, |
nothing calls this directly
no test coverage detected