(&self, id: &UUID)
| 74 | } |
| 75 | |
| 76 | pub fn get_request(&self, id: &UUID) -> ServiceResult<Request> { |
| 77 | let request = |
| 78 | self.request_repository |
| 79 | .get(&Request::key(*id)) |
| 80 | .ok_or(RequestError::NotFound { |
| 81 | request_id: Uuid::from_bytes(id.to_owned()).hyphenated().to_string(), |
| 82 | })?; |
| 83 | |
| 84 | Ok(request) |
| 85 | } |
| 86 | |
| 87 | pub async fn get_caller_privileges_for_request( |
| 88 | &self, |