/// Create a new 'PagingIter' which will make a call to the REST API and load the initial
/// cache with the first page of items.
Create a new 'PagingIter' which will make a call to the REST API and load the initial
cache with the first page of items.
Create a new ' PagingIter ' which will make a call to the REST API and load the initial cache with the first page of items .
fn new(url: &str, auth: Option<&str>) -> Result<Self, SawtoothClientError> {
        let mut new_iter = Self {
            next: Some(url.to_string()),
            cache: VecDeque::with_capacity(0),
            auth: auth.map(String::from),
        };
        new_iter.reload_cache()?;
        Ok(new_iter)
    }
fn new ( url : & str , auth : Option < & str > ) -> Result < Self , SawtoothClientError > { let mut new_iter = Self { next : Some ( url . to_string ( ) ) , cache : VecDeque :: with_capacity ( 0 ) , auth : auth . map ( String :: from ) , } ; new_iter . reload_cache ( ) ? ; Ok ( new_iter ) }
Create a new 'PagingIter' which will make a call to the REST API and load the initial
cache with the first page of items.
Create a new ' PagingIter ' which will make a call to the REST API and load the initial cache with the first page of items .
url
&str
auth
Option<&str>