pub fn remove_as<T: DeserializeOwned>(&self, key: &str) -> Option<Result<T, String>> {
        todo!();
        self.remove(key)
            .map(|val_str| match serde_json::from_str(&val_str) {
                Ok(val) => Ok(val),
                Err(_err) => {
                    log::debug!(
                        "removed value (key: {}) could not be deserialized as {}",
                        key,
                        std::any::type_name::<T>()
                    );
                    Err(val_str)
                }
            })
    }
/// Remove value from the session and deserialize.
///
/// Returns None if key was not present in session. Returns T if deserialization succeeds,
/// otherwise returns un-deserialized JSON string.
Remove value from the session and deserialize.
Returns None if key was not present in session. Returns T if deserialization succeeds,
otherwise returns un-deserialized JSON string.
Remove value from the session and deserialize . Returns None if key was not present in session . Returns T if deserialization succeeds otherwise returns un - deserialized JSON string .
pub fn remove_as<T: DeserializeOwned>(&self, key: &str) -> Option<Result<T, String>> {
        todo!();
        self.remove(key)
            .map(|val_str| match serde_json::from_str(&val_str) {
                Ok(val) => Ok(val),
                Err(_err) => {
                    log::debug!(
                        "removed value (key: {}) could not be deserialized as {}",
                        key,
                        std::any::type_name::<T>()
                    );
                    Err(val_str)
                }
            })
    }
pub fn remove_as < T : DeserializeOwned > ( & self , key : & str ) -> Option < Result < T , String > > { todo ! ( ) ; self . remove ( key ) . map ( | val_str | match serde_json :: from_str ( & val_str ) { Ok ( val ) => Ok ( val ) , Err ( _err ) => { log :: debug ! ( " " key std any type_name T ( ) ) ; Err ( val_str ) } } ) }
Remove value from the session and deserialize.
Remove value from the session and deserialize .
&self
key
&str
&self
key
&str