lxmf-sdk 0.7.0

High-level Rust SDK for LXMF clients and RPC-backed LXMF workflows.
Documentation
1
2
3
4
5
6
7
8
9
use super::{send, SdkError, ZmqPipelineBackendClient};
use crate::types::{BatchSendRequest, BatchSendResult};

impl ZmqPipelineBackendClient {
    pub fn send_batch(&self, req: BatchSendRequest) -> Result<BatchSendResult, SdkError> {
        let result = self.call_rpc("sdk_send_batch_v2", Some(send::batch_params(req)))?;
        Self::decode_value(result, "batch send response")
    }
}