pub async fn amount_in_index(self) -> Result<i64, Box<dyn std::error::Error>> {
        let resp: serde_json::Value = reqwest::get(&self.getendpoint()).await?.json().await?;
        let am: i64 = resp.get("count").unwrap().as_i64().unwrap();
        Ok(am)
    }
/// return amount of items in index
return amount of items in index
return amount of items in index
pub async fn amount_in_index(self) -> Result<i64, Box<dyn std::error::Error>> {
        let resp: serde_json::Value = reqwest::get(&self.getendpoint()).await?.json().await?;
        let am: i64 = resp.get("count").unwrap().as_i64().unwrap();
        Ok(am)
    }
pub async fn amount_in_index ( self ) -> Result < i64 , Box < dyn std :: error :: Error > > { let resp : serde_json :: Value = reqwest :: get ( & self . getendpoint ( ) ) . await ? . json ( ) . await ? ; let am : i64 = resp . get ( " " ) . unwrap ( ) . as_i64 ( ) . unwrap ( ) ; Ok ( am ) }
return amount of items in index
return amount of items in index
self
self