pub async fn delete_state<S>(&mut self, key: S) -> Result<()>
    where
        S: Into<String>,
    {
        self.0
            .delete_state(Request::new(DeleteStateEnvelope {
                key: key.into(),
                ..Default::default()
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
/// Delete the state for a specific key.
Delete the state for a specific key.
Delete the state for a specific key .
pub async fn delete_state<S>(&mut self, key: S) -> Result<()>
    where
        S: Into<String>,
    {
        self.0
            .delete_state(Request::new(DeleteStateEnvelope {
                key: key.into(),
                ..Default::default()
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
pub async fn delete_state < S > ( & mut self , key : S ) -> Result < ( ) > where S : Into < String > , { self . 0 . delete_state ( Request :: new ( DeleteStateEnvelope { key : key . into ( ) , .. Default :: default ( ) } ) ) . await . map ( | res | res . into_inner ( ) ) . map_err ( Error :: from ) }
Delete the state for a specific key.
Delete the state for a specific key .
&mut self
key
S
&mut self
key
S