You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Helper function to deserialize objects with serde. We need this 'singleton_map_recursive' thing, otherwise/// untagged enums will not deserialize correctly.fndeserialize<'de,T: stackable_operator::k8s_openapi::serde::Deserialize<'de>>(input:&'de str,) -> T{let deserializer = serde_yaml::Deserializer::from_str(input);
serde_yaml::with::singleton_map_recursive::deserialize(deserializer).unwrap()}
usage:
let auth_class:AuthenticationClass = deserialize(<your string here>);
The text was updated successfully, but these errors were encountered:
usage:
The text was updated successfully, but these errors were encountered: