(
&self,
request: pb::GetProjectIdentityRequest,
)
| 1239 | |
| 1240 | impl Service { |
| 1241 | pub fn get_project_identity( |
| 1242 | &self, |
| 1243 | request: pb::GetProjectIdentityRequest, |
| 1244 | ) -> CliResult<pb::GetProjectIdentityResponse> { |
| 1245 | self.call(move |backend| async move { |
| 1246 | match backend { |
| 1247 | Backend::Local(state) => services_agent::KnowledgeImpl { state } |
| 1248 | .get_project_identity(Request::new(request)) |
| 1249 | .await |
| 1250 | .map(|response| response.into_inner()), |
| 1251 | Backend::Reactor(channel) => { |
| 1252 | pb::knowledge_service_client::KnowledgeServiceClient::new(channel) |
| 1253 | .get_project_identity(request) |
| 1254 | .await |
| 1255 | .map(|response| response.into_inner()) |
| 1256 | } |
| 1257 | } |
| 1258 | }) |
| 1259 | } |
| 1260 | |
| 1261 | pub fn get_workflow_snapshot( |
| 1262 | &self, |
no test coverage detected