fn list_blocks(
        &self,
    ) -> Result<
        Box<dyn Iterator<Item = Result<ClientBlock, SawtoothClientError>>>,
        SawtoothClientError,
    > {
        let url = format!("{}/blocks", &self.url);

        Ok(Box::new(PagingIter::new(&url, self.auth.as_deref())?.map(
            |item: Result<Block, _>| item.map(|block| block.into()),
        )))
    }
/// List all blocks in the current blockchain
List all blocks in the current blockchain
List all blocks in the current blockchain
fn list_blocks(
        &self,
    ) -> Result<
        Box<dyn Iterator<Item = Result<ClientBlock, SawtoothClientError>>>,
        SawtoothClientError,
    > {
        let url = format!("{}/blocks", &self.url);
        Ok(Box::new(PagingIter::new(&url, self.auth.as_deref())?.map(
            |item: Result<Block, _>| item.map(|block| block.into()),
        )))
    }
fn list_blocks ( & self , ) -> Result < Box < dyn Iterator < Item = Result < ClientBlock , SawtoothClientError > > > , SawtoothClientError , > { let url = format ! ( " " self url ) ; Ok ( Box :: new ( PagingIter :: new ( & url , self . auth . as_deref ( ) ) ? . map ( | item : Result < Block , _ > | item . map ( | block | block . into ( ) ) , ) ) ) }
List all blocks in the current blockchain
List all blocks in the current blockchain
&self
&self