(method: &str)
| 103 | /// (`sandbox` or `dual` auth mode). |
| 104 | #[must_use] |
| 105 | pub fn is_sandbox_callable(method: &str) -> bool { |
| 106 | matches!( |
| 107 | lookup(method).map(|m| m.mode), |
| 108 | Some(AuthMode::Sandbox | AuthMode::Dual) |
| 109 | ) |
| 110 | } |
| 111 | |
| 112 | /// `true` if the method is callable by a `Principal::User` (`bearer` or |
| 113 | /// `dual` auth mode). |