Skip to main content

lookups_of

Function lookups_of 

Source
pub fn lookups_of(record: &Value) -> Result<Vec<Lookup>, InvalidRecord>
Expand description

The lookups a record’s JSON declares, read the way PolicyRecord::from_json reads them.

For a caller holding a record as JSON rather than as a PolicyRecord – the built-ins, which are records written in Rust.

§Errors

See InvalidRecord: anything lookups may not hold.