pub async fn invoke_binding<S, D>(&mut self, name: S, data: D) -> Result<()>
    where
        S: Into<String>,
        D: IntoAny,
    {
        self.0
            .invoke_binding(Request::new(InvokeBindingEnvelope {
                name: name.into(),
                data: data.into_any(),
                ..Default::default()
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
/// Invoke an Dapr output binding.
Invoke an Dapr output binding.
Invoke an Dapr output binding .
pub async fn invoke_binding<S, D>(&mut self, name: S, data: D) -> Result<()>
    where
        S: Into<String>,
        D: IntoAny,
    {
        self.0
            .invoke_binding(Request::new(InvokeBindingEnvelope {
                name: name.into(),
                data: data.into_any(),
                ..Default::default()
            }))
            .await
            .map(|res| res.into_inner())
            .map_err(Error::from)
    }
pub async fn invoke_binding < S , D > ( & mut self , name : S , data : D ) -> Result < ( ) > where S : Into < String > , D : IntoAny , { self . 0 . invoke_binding ( Request :: new ( InvokeBindingEnvelope { name : name . into ( ) , data : data . into_any ( ) , .. Default :: default ( ) } ) ) . await . map ( | res | res . into_inner ( ) ) . map_err ( Error :: from ) }
Invoke an Dapr output binding.
Invoke an Dapr output binding .
&mut self
name
S
data
D
&mut self
name
S
data
D