MCPcopy Create free account
hub / github.com/hashintel/hash / as_ref

Method as_ref

libs/@local/graph/postgres-store/src/store/validation.rs:51–57  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

49 }
50
51 const fn as_ref(&self) -> Access<&T> {
52 match self {
53 Self::Granted(value) => Access::Granted(value),
54 Self::Denied => Access::Denied,
55 Self::Malformed => Access::Malformed,
56 }
57 }
58}
59
60// TODO: potentially add a cache eviction policy

Callers 15

connection_infoMethod · 0.45
to_sqlMethod · 0.45
hash_fileFunction · 0.45
read_migration_fileFunction · 0.45
nameMethod · 0.45
cursorMethod · 0.45
policy_to_tupleFunction · 0.45
collect_from_pathFunction · 0.45
cursorMethod · 0.45
from_eidMethod · 0.45
to_cedarMethod · 0.45
try_from_cedarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected