Skip to main content

attr_get

Function attr_get 

Source
pub fn attr_get(obj: &Value, name: &str) -> DogeResult
Expand description

Read obj.name. A missing field is a catchable ErrorKind::AttrError; reading a field off a non-object is a catchable TypeError.