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

Method to_vec

core/station/impl/src/models/resource.rs:278–283  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

276
277impl ResourceIds {
278 pub fn to_vec(&self) -> Vec<ResourceId> {
279 match self {
280 ResourceIds::Any => vec![],
281 ResourceIds::Ids(ids) => ids.iter().map(|id| ResourceId::Id(*id)).collect(),
282 }
283 }
284}
285
286impl Resource {

Callers 15

hashFunction · 0.80
load_module_and_argsMethod · 0.80
createMethod · 0.80
createMethod · 0.80
createMethod · 0.80
paginated_itemsFunction · 0.80
set_initial_usersFunction · 0.80
find_by_user_whereMethod · 0.80
test_get_artifactFunction · 0.80
fromMethod · 0.80
valid_model_conversionFunction · 0.80

Calls 2

mapMethod · 0.80
iterMethod · 0.80

Tested by 15

test_get_artifactFunction · 0.64
valid_model_conversionFunction · 0.64
test_duplicate_entryFunction · 0.64
test_latest_tagFunction · 0.64
check_crud_operationsFunction · 0.64
test_find_by_hashFunction · 0.64
test_artifact_creationFunction · 0.64