Skip to main content

map_attributes

Function map_attributes 

Source
pub fn map_attributes(
    document: &mut Value,
    types: &[&str],
    callback: impl FnMut(&mut Map<String, Value>),
)
Expand description

Applies a callback to the attributes of each resource whose type is listed (or every resource when types is empty). A plain JSON object counts as one resource’s attributes.