Skip to main content

set_repo

Function set_repo 

Source
async fn set_repo<T: RepositoryItem>(
    registry: &StateRegistry,
    key: &str,
    value: Value,
) -> bool
Expand description

Write one item to the T repository at its string key. Returns false on a bad key, a value that does not deserialize to T, or a failed write.