api_impl::storage

Function get_object_value_attribute

Source
pub fn get_object_value_attribute(
    object: ObjectHandle,
    attribute_id: AttributeId,
) -> Result<ValueFields>
Expand description

Returns the requested value-type attribute associated with the given object, if any.

Returns Error::ItemNotFound if the object does not have such an attribute.

Panics if object is not a valid handle or if attribute_id is not of value type.