MCPcopy Create free account
hub / github.com/dfinity/orbit / get_resources

Method get_resources

core/station/impl/src/repositories/request.rs:251–258  ·  view source on GitHub ↗

Get the list of Resource for a request id.

(&self, request_id: &RequestId)

Source from the content-addressed store, hash-verified

249
250 /// Get the list of Resource for a request id.
251 pub fn get_resources(&self, request_id: &RequestId) -> Vec<Resource> {
252 self.resource_index
253 .find_by_criteria(RequestResourceIndexCriteria {
254 request_id: *request_id,
255 })
256 .into_iter()
257 .collect()
258 }
259
260 /// Find the indexed fields of a request by its id.
261 pub fn find_indexed_fields_by_request_id(

Callers 1

evaluateMethod · 0.80

Calls 1

find_by_criteriaMethod · 0.45

Tested by

no test coverage detected