pub async fn invoke_service<I, M, D>(
        &mut self,
        app_id: I,
        method_name: M,
        data: D,
    ) -> Result<(Option<Any>, Metadata)>
    where
        I: Into<String>,
        M: Into<String>,
        D: IntoAny,
    {
        self.0
            .invoke_service(Request::new(InvokeServiceEnvelope {
                id: app_id.into(),
                method: method_name.into(),
                data: data.into_any(),
                ..Default::default()
            }))
            .await
            .map(|res| {
                let InvokeServiceResponseEnvelope { data, metadata } = res.into_inner();

                (data, metadata)
            })
            .map_err(Error::from)
    }
/// Invoke a method in a Dapr enabled app.
Invoke a method in a Dapr enabled app.
Invoke a method in a Dapr enabled app .
pub async fn invoke_service<I, M, D>(
        &mut self,
        app_id: I,
        method_name: M,
        data: D,
    ) -> Result<(Option<Any>, Metadata)>
    where
        I: Into<String>,
        M: Into<String>,
        D: IntoAny,
    {
        self.0
            .invoke_service(Request::new(InvokeServiceEnvelope {
                id: app_id.into(),
                method: method_name.into(),
                data: data.into_any(),
                ..Default::default()
            }))
            .await
            .map(|res| {
                let InvokeServiceResponseEnvelope { data, metadata } = res.into_inner();
                (data, metadata)
            })
            .map_err(Error::from)
    }
pub async fn invoke_service < I , M , D > ( & mut self , app_id : I , method_name : M , data : D , ) -> Result < ( Option < Any > , Metadata ) > where I : Into < String > , M : Into < String > , D : IntoAny , { self . 0 . invoke_service ( Request :: new ( InvokeServiceEnvelope { id : app_id . into ( ) , method : method_name . into ( ) , data : data . into_any ( ) , .. Default :: default ( ) } ) ) . await . map ( | res | { let InvokeServiceResponseEnvelope { data , metadata } = res . into_inner ( ) ; ( data , metadata ) } ) . map_err ( Error :: from ) }
Invoke a method in a Dapr enabled app.
Invoke a method in a Dapr enabled app .
&mut self
app_id
I
method_name
M
data
D
&mut self
app_id
I
method_name
M
data
D