Skip to main content

link_or_null

Function link_or_null 

Source
fn link_or_null(value: &Value) -> Option<Option<Cid>>
Expand description

Reads a field that is a link or null, and refuses anything else.

The outer Option is “this was not one of those two”; the inner one is the null. A field that is simply absent never reaches here — the field count is checked first.