MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / load

Method load

graphlite/src/catalog/providers/security.rs:833–841  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

831 }
832
833 fn load(&mut self, data: &[u8]) -> CatalogResult<()> {
834 let state: SecurityCatalogState = bincode::deserialize(data)
835 .map_err(|e| CatalogError::DeserializationError(e.to_string()))?;
836
837 self.users = state.users;
838 self.roles = state.roles;
839 self.aces = state.aces;
840 Ok(())
841 }
842
843 fn schema(&self) -> CatalogSchema {
844 CatalogSchema {

Callers 1

initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected