/// List all state entries in the current blockchain
List all state entries in the current blockchain
List all state entries in the current blockchain
fn list_states(
        &self,
    ) -> Result<
        Box<dyn Iterator<Item = Result<ClientState, SawtoothClientError>>>,
        SawtoothClientError,
    > {
        let url = format!("{}/state", &self.url);
        Ok(Box::new(
            PagingIter::new(&url, self.auth.as_deref())?
                .map(|item: Result<State, _>| item.map(convert_state)?),
        ))
    }
fn list_states ( & self , ) -> Result < Box < dyn Iterator < Item = Result < ClientState , SawtoothClientError > > > , SawtoothClientError , > { let url = format ! ( " " self url ) ; Ok ( Box :: new ( PagingIter :: new ( & url , self . auth . as_deref ( ) ) ? . map ( | item : Result < State , _ > | item . map ( convert_state ) ? ) , ) ) }
List all state entries in the current blockchain
List all state entries in the current blockchain
&self