Skip to main content

storage_from_admin_entry

Function storage_from_admin_entry 

Source
pub fn storage_from_admin_entry(key: &str, value: &Value) -> Option<StorageInfo>
Expand description

Extract a storage from one admin entry, tolerantly: the key shape is @/<zid>/router/…/storage_manager/storages/<name>[…], the value a config document whose key_expr field names what it captures. Pure — the version-variance lives here, unit-tested.