(id: &str)
| 1527 | } |
| 1528 | |
| 1529 | fn stream_quality_profile(id: &str) -> Result<StreamQualityProfile, AppError> { |
| 1530 | STREAM_QUALITY_PROFILES |
| 1531 | .iter() |
| 1532 | .copied() |
| 1533 | .find(|profile| profile.id == id) |
| 1534 | .ok_or_else(|| AppError::bad_request(format!("Unknown stream quality profile `{id}`."))) |
| 1535 | } |
| 1536 | |
| 1537 | fn stream_quality_profile_value(profile: &StreamQualityProfile) -> Value { |
| 1538 | json_value!({ |
no outgoing calls
no test coverage detected