Skip to main content

try_as_role

Function try_as_role 

Source
fn try_as_role(kind_json: &StateUpdateKindJson) -> Option<Role>
Expand description

Returns the parsed Role iff kind_json is one. Returns None for any other kind, or for rows we can’t deserialize as the current Role shape (which we treat as “leave alone” — losing that row to the repair would be worse than the soft_assert noise).