Skip to main content

resource_type

Function resource_type 

Source
pub fn resource_type<'a>(
    object: &'a Object,
    path: &Path,
) -> Result<&'a str, DecodeError>
Expand description

The resourceType of an object, for dispatch.

ยงErrors

Returns DecodeError when the property is absent or not a string.