Skip to main content

items_in

Function items_in 

Source
pub(crate) fn items_in(
    body: &Value,
    items_path: &str,
    id_path: &str,
    limit: usize,
) -> Result<Value, String>
Expand description

The items in a successful answer’s body, each with its id: { "items": [ { "id": "…", "item": <the item> } ] }. An item with no id is not one. Pure, so it is testable without a server.