Function merge

Source
pub fn merge<T: Serialize + DeserializeOwned>(
    base: &T,
    overrides: &T,
) -> Result<T, Error>
Expand description

deep merge two structs that are serializable. based on turning them into json::Value and merging that.

ยงErrors

Will return an error if serialization fails