MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / assign

Method assign

nodedb/src/control/surrogate/physical_impl.rs:16–23  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        pk_bytes: &[u8],
    )

Source from the content-addressed store, hash-verified

14 }
15
16 fn assign(
17 &self,
18 collection: &str,
19 pk_bytes: &[u8],
20 ) -> Result<nodedb_types::Surrogate, SurrogateAssignError> {
21 Self::assign(self, collection, pk_bytes)
22 .map_err(|e| SurrogateAssignError::Backend(e.to_string()))
23 }
24}

Callers

nothing calls this directly

Calls 2

assignFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected