/// List the committed status of one or more batches with the given batch_ids.
List the committed status of one or more batches with the given batch_ids.
List the committed status of one or more batches with the given batch_ids .
fn list_batch_status(
        &self,
        batch_ids: Vec<&str>,
        wait: Option<Duration>,
    ) -> Result<Option<Vec<ClientStatus>>, SawtoothClientError> {
        let mut url = format!("{}/batch_statuses?", &self.url);
        if let Some(time) = wait {
            let wait_time = time.as_secs();
            url = url + &format!("wait={}&", wait_time);
        }
        let ids = batch_ids.join(",");
        url = url + &format!("id={}", ids);
        let error_msg = &format!("unable to get the status for batches: {}", ids);
        Ok(get::<StatusList>(&url, error_msg, self.auth.as_deref())?.map(convert_status_list))?
            .transpose()
    }
fn list_batch_status ( & self , batch_ids : Vec < & str > , wait : Option < Duration > , ) -> Result < Option < Vec < ClientStatus > > , SawtoothClientError > { let mut url = format ! ( " " self url ) ; if let Some ( time ) = wait { let wait_time = time . as_secs ( ) ; url = url + & format ! ( " " wait_time ) ; } let ids = batch_ids . join ( " " ) ; url = url + & format ! ( " " ids ) ; let error_msg = & format ! ( " " ids ) ; Ok ( get :: < StatusList > ( & url , error_msg , self . auth . as_deref ( ) ) ? . map ( convert_status_list ) ) ? . transpose ( ) }
List the committed status of one or more batches with the given batch_ids.
List the committed status of one or more batches with the given batch_ids .
&self
batch_ids
Vec<&str>
wait
Option<Duration>